[Python-Dev] RE: [spambayes-dev] bug in imap filter or in email package

Tony Meyer tameyer at ihug.co.nz
Thu Aug 5 03:56:49 CEST 2004


There has been a little bit of discussion on spambayes-dev about a bug with
the 2.4a1 email package, where header lines that end with \r\n are not
treated correctly (the value ends up with a \r at the end).

A SF bug was opened for this:

[ 1002475 ] email message parser doesn't handle \r\n correctly
<http://sf.net/tracker/?group_id=5470&atid=105470&func=detail&aid=1002475>

I've created a patch to fix this, and a couple of tests to add to
test_email.py:
[ 1003693 ] Fix for 1002475 (Feedparser not handling \r\n correctly)
<http://sf.net/tracker/index.php?func=detail&aid=1003693&group_id=5470&atid=
305470>

If someone would like to review this and check it in after 2.4a2 is all done
that would be great.  Maybe someone at the bug day?  (I might come along to
that, but it's the middle of the night, so probably not).

Thanks!

=Tony Meyer



More information about the Python-Dev mailing list