I think its worth to mention that these header checks create a lot of false
positives on non-English based characters.

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Bill Landry
Sent: Tuesday, June 10, 2003 3:14 AM
To: [EMAIL PROTECTED]
Subject: [IMGate] Re: Bad Date Header



Try this in you header checks, called as a regexp string (NOT pcre):

    /[^[:print:]]{7}/       REJECT Your mailer is not RFC 2047 compliant

which will cover all of the headers, including the date.

Bill
----- Original Message ----- 
From: "Evan Pearce" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 09, 2003 4:59 PM
Subject: [IMGate] Re: Bad Date Header



On 10/06/2003 at 09:25:31, Michael Keen wrote:


>> /^Date: .*[[:^print:]]/ REJECT RFC 1893 ERROR 5.6.2 Conversion of high
bit
>> header in date required and prohibited by RFC 2047.

> Woops.  I get:

> imgate postfix/cleanup[4730]: warning: regexp map
> /etc/postfix/header_checks.regexp, line 39: invalid character class

I think the caret is in the wrong spot. Try it as:

        /^Date: .*[^[:print:]]/

Cheers,
Evan






Reply via email to