On Mon, 4 Feb 2002, Edward Fang wrote:

> In the file perl5/Mail/SpamAssassin/NoMailAudit.pm (whereever you
> installed this), you will find these lines (starting at around 118 in my
> file):
>
>     } elsif (/^([^\x00-\x1f\x7f-\xff :]+): (.*)$/) {
>       $hdr = $1; $val = $2;
>       $val =~ s/\r+//gs;          # trim CRs, we don't want them
>       $entry = $self->_get_or_create_header_object ($hdr);
>       $entry->{original} = 1;
>
>     } else {
>       $hdr = "X-Mail-Format-Warning";
>       $val = "Bad RFC822 header formatting in $_";
>       $entry = $self->_get_or_create_header_object ($hdr);
>       $entry->{added} = 1;
>     }
>
> The regex in the first line is the problem. It expects a space after the
> first colon, which our header does not have. So change it to this regex:
>
>       (/^([^\x00-\x1f\x7f-\xff :]+):[\t ]+(.*)$/)
>
> This allows 1 or more spaces/tabs in front of the actual content. This
> is more correct, and I have even checked it out with some of our mail
> guru's.

The above is also incorrect. The current code uses \s*, which allows zero
or more spaces.

-- 
Matt.
<:->get a SMart net</:->


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

_______________________________________________
Spamassassin-talk mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/spamassassin-talk

Reply via email to