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 maxking
Recipients barry, maxking, msapiro, p-ganssle, r.david.murray, xtreak
Date 2019-05-17.14:15:27
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
I was wrong about the parsing error, it looks like length from the policy isn't used when parsing.

>>> from email.policy import default
>>> from email import message_from_string
>>> p = default.clone(max_line_length=10)
>>> msg = message_from_string("""\
... From:
... To:
... Subject: WelcomeToThisLongSubject
... Thanks""", policy=p)
>>> msg
<email.message.EmailMessage object at 0x7f448f70d860>
>>> msg['Subject']

This works just fine. Thanks David. +1 for ValueError then.
Date User Action Args
2019-05-17 14:15:27maxkingsetrecipients: + maxking, barry, msapiro, r.david.murray, p-ganssle, xtreak
2019-05-17 14:15:27maxkingsetmessageid: <>
2019-05-17 14:15:27maxkinglinkissue36564 messages
2019-05-17 14:15:27maxkingcreate