[issue11492] email.header.Header doesn't fold headers
R. David Murray
report at bugs.python.org
Wed Apr 6 02:35:12 CEST 2011
R. David Murray <rdmurray at bitdance.com> added the comment:
Ah, it isn't broken, it's just that the default changed. In 2.x, the default was maxlinelen=78, in 3.x, the default is maxlinelen=None (unlimited), but generator passes in an override of 78 when formatting output. So you can specify an explicit maxlinelen=78 and that will wrap the headers in both 2.x and 3.x. (There are differences in the wrapping algorithms, though!)
----------
resolution: -> invalid
stage: needs patch -> committed/rejected
status: open -> closed
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11492>
_______________________________________
More information about the Python-bugs-list
mailing list