summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorbsiem <52461103+bsiem@users.noreply.github.com>2019-08-21 23:00:39 (GMT)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2019-08-21 23:00:39 (GMT)
commitdf0c21ff46c5c37b6913828ef8c7651f523432f8 (patch)
tree9bb5e4b73f90cf4a2b2f8f6f8f33f988953504ed /Misc
parent48ede6b8f685669f53d26ae8456647af42ae3dae (diff)
downloadcpython-df0c21ff46c5c37b6913828ef8c7651f523432f8.zip
cpython-df0c21ff46c5c37b6913828ef8c7651f523432f8.tar.gz
cpython-df0c21ff46c5c37b6913828ef8c7651f523432f8.tar.bz2
bpo-37482: Fix email address name with encoded words and special chars (GH-14561)
Special characters in email address header display names 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 display name in 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 therefore rejected by some mail servers. From: "Foo Bar, France" <foo@example.com> To: Foo Bar, =?utf-8?q?Espa=C3=B1a?= <foo@example.com> https://bugs.python.org/issue37482
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Library/2019-07-09-11-20-21.bpo-37482.auzvev.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Library/2019-07-09-11-20-21.bpo-37482.auzvev.rst b/Misc/NEWS.d/next/Library/2019-07-09-11-20-21.bpo-37482.auzvev.rst
new file mode 100644
index 0000000..e09ff63
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2019-07-09-11-20-21.bpo-37482.auzvev.rst
@@ -0,0 +1 @@
+Fix serialization of display name in originator or destination address fields with both encoded words and special chars.