bogofilter 0.17.2 writing out X-Bogosity header and messageseparater as LF instead of CRLF

tallison at tacocat.net tallison at tacocat.net
Tue Feb 24 19:57:22 CET 2004


> On Mon, 23 Feb 2004, Jim Correia wrote:
>
>> 1) The spam header written in write_message in passthrough.c:260 is LF
>> terminated. Shouldn't it be CRLF terminated like the rest of the
>> headers?
>> 2) In write_body in the same file, it separates the message from the
>> headers with LF LF. Again, shouldn't this be CRLF CRLF?
>
> No & no. Most, if not all, unix MTAs use LF alone to separate lines when
> the mail is stored in a local file (e.g. a BSD mailbox) or fed to a
> local process. CRLF is for SMTP (and, ehm, for certain backward
> platforms).
>
> CRLF might be an option but it should not be the default setting.
>

I don't see CRLF either, but RFC822 mentions headers to be terminated with
a CRLF.
Perhaps it's more of a guideline than a rule?




More information about the Bogofilter mailing list