[issue19470] email.header.Header - should not allow two newlines in a row

R. David Murray report at bugs.python.org
Thu Feb 27 00:24:40 CET 2014


R. David Murray added the comment:

Having thought further about this (prompted by a suggested fix by Varun Sharma), I'm going to reject it.  The reason is that the email package in 3.2 compatibility mode still uses the Header object to encapsulate headers that have invalid binary data in them.  This means that if we added the check to Header, the email package could throw errors at unexpected times (that is, when retrieving a header from a parsed message).

In retrospect I think returning a Header object for invalid data was probably a bad idea, but what's done is done.

----------
resolution:  -> rejected
stage:  -> committed/rejected
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19470>
_______________________________________


More information about the Python-bugs-list mailing list