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 bsiem
Recipients barry, bsiem, r.david.murray
Date 2019-07-02.11:51:15
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1562068275.57.0.247896906946.issue37482@roundup.psfhosted.org>
In-reply-to
Content
Special characters in email headers are normally put within double quotes. However, encoded words (=?charset?x?...?=) are not allowed withing double quotes. When the header contains a word with special characters and another word that must be encoded, the first one must also be encoded.

In the next example, The From header is quoted and therefore the comma is allowed; in the To header, the comma is not within quotes and not encoded, which is not allowed and rejected.

From: "Foo Bar, France" <foo@example.com>
To: Foo Bar, =?utf-8?q?Espa=C3=B1a?= <foo@example.com>
History
Date User Action Args
2019-07-02 11:51:15bsiemsetrecipients: + bsiem, barry, r.david.murray
2019-07-02 11:51:15bsiemsetmessageid: <1562068275.57.0.247896906946.issue37482@roundup.psfhosted.org>
2019-07-02 11:51:15bsiemlinkissue37482 messages
2019-07-02 11:51:15bsiemcreate