B Siemerink added the comment:
Thank you all!
--
resolution: -> fixed
stage: patch review -> resolved
status: open -> closed
___
Python tracker
<https://bugs.python.or
Change by B Siemerink :
--
pull_requests: +15090
pull_request: https://github.com/python/cpython/pull/15380
___
Python tracker
<https://bugs.python.org/issue37
B Siemerink added the comment:
Yes, you are right! The fix is to encode the special characters.
--
___
Python tracker
<https://bugs.python.org/issue37
B Siemerink added the comment:
Hello David, thank you for the suggestion.
Regarding your comment:
> Either the comma should be encoded, or the "Foo Bar," should be in quotes.
According to RFC5322 the display name cannot contain both a quoted part and an
encoded word, so the o
Change by B Siemerink :
--
title: Email header fails with both encoded words and special chars -> Email
address display name fails with both encoded words and special chars
___
Python tracker
<https://bugs.python.org/issu
New submission from B Siemerink :
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