This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author r.david.murray
Recipients barry, jwilk, pl, r.david.murray, terry.reedy
Date 2010-08-06.03:20:54
SpamBayes Score 1.0125484e-10
Marked as misclassified No
Message-id <1281064856.56.0.553342392987.issue5871@psf.upfronthosting.co.za>
In-reply-to
Content
Yeah, it's a good question whether or not this is enough of a behavior change that the fix can't be backported.  On the other hand, this is definitely a bug (the RFCs specifiy that header values may not contain newlines or carriage returns), so at the moment I'm inclined toward backporting.  I've got it on my list of things to worry about in the next version of email, but unfortunately that won't make it into 3.2.  I'm raising the priority because I think I should at least fix this in the existing package in 3.2.

Jakub, if you feel motivated to propose a patch that inclues unit tests, that would be very helpful.  I believe the correct thing to do would be to raise a ValueError if the argument to Header contains any /n or /r characters.
History
Date User Action Args
2010-08-06 03:20:56r.david.murraysetrecipients: + r.david.murray, barry, terry.reedy, jwilk, pl
2010-08-06 03:20:56r.david.murraysetmessageid: <1281064856.56.0.553342392987.issue5871@psf.upfronthosting.co.za>
2010-08-06 03:20:55r.david.murraylinkissue5871 messages
2010-08-06 03:20:54r.david.murraycreate