defining empty lines.

Matthias Andree matthias.andree at gmx.de
Wed Jun 4 22:10:38 CEST 2003


David Relson <relson at osagesoftware.com> writes:

> I don't think we should have bogofilter "fix" nonconforming mail.
> Bogofilter's job is detection and classification, not fixing.
>
> The message thread that sparked the discussion of empty lines is titled
> "Re: 0.12.1 problem [was: bogofilter and qmail-qfilter]".  Jeremy
> Blosser had reported the problem and found that "\b\r\n" would produce
> the same result - bogofilter putting the X-Bogosity line in the message
> body.  Here's his actual comment:

> That finding resulted in my adding is_blank_line() to main.c with a
> check for isspace(c) || (c == '\b').  If the '\b' causes trouble, we can
> always delete it and see if we're better off without it.

We can just prepend the header rather than append it -- that way, we
evade the need to reliably detect the end of the headers and let this
job up to the mail user agent.

-- 
Matthias Andree




More information about the Bogofilter mailing list