This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Константин Волков
Recipients barry, r.david.murray, Константин Волков
Date 2016-10-17.17:08:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1476724139.73.0.82516539768.issue28463@psf.upfronthosting.co.za>
In-reply-to
Content
There is strange thing with long headers serialized, they have \n prefix. Example fails on Python3.4/3.5:

from email.message import Message
from email import message_from_bytes

x = '<147672320775.19544.6718708004153358411@mkren-spb.root.devdomain.local>'
header = 'Message-ID'
msg = Message()
msg[header] = x

data = msg.as_bytes()

msg2 = message_from_bytes(data)
print(x)
print(msg2[header])
assert msg2[header] == x


MessageID was generated by email.utils.make_msgid function.
History
Date User Action Args
2016-10-17 17:08:59Константин Волковsetrecipients: + Константин Волков, barry, r.david.murray
2016-10-17 17:08:59Константин Волковsetmessageid: <1476724139.73.0.82516539768.issue28463@psf.upfronthosting.co.za>
2016-10-17 17:08:59Константин Волковlinkissue28463 messages
2016-10-17 17:08:59Константин Волковcreate