[issue20747] Charset.header_encode in email.charset doesn't take a maxlinelen argument and has inconsistent behavior with different encodings
R. David Murray
report at bugs.python.org
Mon Feb 24 00:47:24 CET 2014
R. David Murray added the comment:
The line wrapping is done by Header, not header_encode. The bug appears to be that maxlinelen=None is not passed to base64mime's header_encode the way it is to quoprimime's header_encode...and that base64mime doesn't handle a maxlinelen of None. Using maxlinelen=9999999 in the base64mime.header_encode calll, your base64 example also results in a single line header.
This should be fixed. It does not affect python3, which uses a different folding algorithm.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20747>
_______________________________________
More information about the Python-bugs-list
mailing list