CR check in base64_decode

Matthias Andree matthias.andree at gmx.de
Tue Jan 4 02:47:46 CET 2005


David Relson <relson at osagesoftware.com> writes:

>> Hm. "file" of what format? mbox and Maildir store LF only, I don't know
>> about the other formats offhand. At any rate, that stuff needs to be
>> called from another layer anyways, not from the lexer.  A leftover
>> change from last year.
>
> Remember bogofilter runs on multiple platforms, hence must deal with
> CRLF pairs...

I wonder if that should be the algorithm's business. Traditionally, mail
has been operating on lines, without regard to the endings. We save the
line endings in the string, confusing the base64* - which needn't see
the line ending at all.

-- 
Matthias Andree



More information about the bogofilter-dev mailing list