[issue10686] email.Generator should use unknown-8bit encoded words for headers with 8 bit data

R. David Murray report at bugs.python.org
Fri Jan 7 04:31:55 CET 2011


R. David Murray <rdmurray at bitdance.com> added the comment:

Here is a patch.  Three of the tests currently fail due to what appears to be a bug in the Header formatting routines.  I'll have to look in to that before finishing this issue.

Note that doing str on a message with binary headers can produce overlong lines, since str does not limit line widths.  generator.flatten does, though, so in that case the lengthened lines are correctly rewrapped.  (Well, as correctly as Header rewraps any headers, at least, which is not all that well in certain cases).

----------
keywords: +patch
Added file: http://bugs.python.org/file20297/email_unknown-8bit.patch

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


More information about the Python-bugs-list mailing list