defining empty lines.

Matthias Andree matthias.andree at gmx.de
Wed May 28 13:15:05 CEST 2003


David Relson <relson at osagesoftware.com> writes:

> RFC2822 specifies "The body is simply a sequence of characters that
> follows the header and is separated from the header by an empty line
> (i.e., a line with nothing preceding the CRLF).
>
> Jeremy Blosser has encountered many spam messages where "\b\r\n" appears
> in this position.  Bogofilter is looking for the truly empty lines for
> writing out the "X-Bogosity" line (in passthrough mode) and gets it
> wrong for these messages.

Well, \b isn't exactly whitespace, it's a control, and so, you're
looking at a message without body. However, as spam is trimmed for the
Winbloze mailers, what does Outlook Express 6.X display on such
messages? What does Netscape 7.x display?

> P.S. Alternate solutions are welcomed.

Reject or discard at SMTP level because of the invalid header :->

Postfix' header checks regexp (untested, use at your own risk):

/^[^:]+$/ DISCARD mail with b0rked header.

-- 
Matthias Andree




More information about the Bogofilter mailing list