[issue5871] email.header.Header too lax with embeded newlines

Ray.Allen report at bugs.python.org
Sat Aug 7 12:08:02 CEST 2010


Ray.Allen <ysj.ray at gmail.com> added the comment:

Besides, not only the header value, but also the header name can only be printable ascii characters according to RFC2822:

"A field name MUST be composed of printable US-ASCII characters (i.e., characters that have values between 33 and 126, inclusive), except   colon."

But the msg object's __getitem__() seems to accept all ascii characters.

----------
nosy: +ysj.ray

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


More information about the Python-bugs-list mailing list