[issue36520] Email header folded incorrectly
Jeffrey Kintscher
report at bugs.python.org
Sun May 26 23:43:45 EDT 2019
Jeffrey Kintscher <websurfer at surf2c.net> added the comment:
To aid with debugging the code, the Subject line can be simplified:
>>> from email.message import EmailMessage
>>> m = EmailMessage()
>>> m['Subject'] = 'Hello =?utf-8?q?W=C3=B6rld!_Hello_W=C3=B6rld!_Hello_W=C3=B6rld!?= Hello Wörld!Hello Wörld!'
>>> print(bytes(m))
b'Subject: Hello =?utf-8?q?W=C3=B6rld!_Hello_W=C3=B6rld!_Hello_W=C3=B6rld!?=\n Hello =?utf-8?=?utf-8?q?q=3FW=3DC3=3DB6rld!Hello=3F=3D_W=C3=B6rld!?=\n\n'
----------
_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue36520>
_______________________________________
More information about the Python-bugs-list
mailing list