[issue36520] Email header folded incorrectly
R. David Murray
report at bugs.python.org
Wed May 22 21:39:57 EDT 2019
R. David Murray <rdmurray at bitdance.com> added the comment:
Nevermind, I was testing with the wrong version of python. This bug was introduced somewhere after 3.4 :(
>>> from email.message import EmailMessage
>>> m = EmailMessage()
>>> m['Subject'] = 'Hello Wörld! Hello Wörld! Hello Wörld! Hello Wörld!Hello Wörld!'
>>> 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