[spambayes-dev] bug in imap filter or in email package

Barry Warsaw barry at python.org
Sat Aug 7 18:00:40 CEST 2004


On Mon, 2004-08-02 at 16:32, Sjoerd Mullender wrote:

> The question is, is this a bug in the email package in that it should
> convert \r\n to \n, or is this a bug somewhere else in that the message
> given to the email package should never have included those \r\n?
> 
> The message instance is created with email.Parser.Parser().parsestr(...)
> where the argument to parsestr is the data as returned by the IMAP
> server (which of course uses \r\n line endings).

Just for completeness, the email parser is supposed to be line-ending
agnostic.  IOW, it should gladly accept any of the 3 standard line
endings.  Thanks to Tony's patch, it now does. :)

-Barry

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
Url : http://mail.python.org/pipermail/spambayes-dev/attachments/20040807/2b59b304/attachment.pgp


More information about the spambayes-dev mailing list