cpython/Lib/test/test_email
bsiem df0c21ff46 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
2019-08-21 16:00:39 -07:00
..
data
__init__.py
__main__.py
test__encoded_words.py bpo-27397: Make email module properly handle invalid-length base64 strings (#7583) 2018-06-12 15:46:22 +03:00
test__header_value_parser.py bpo-32178: Fix IndexError trying to parse 'To' header starting with ':'. (GH-15044) 2019-08-11 13:45:09 -07:00
test_asian_codecs.py
test_contentmanager.py
test_defect_handling.py bpo-27397: Make email module properly handle invalid-length base64 strings (#7583) 2018-06-12 15:46:22 +03:00
test_email.py Fix typos in comments, docs and test names (#15018) 2019-07-30 18:16:13 -04:00
test_generator.py bpo-34424: Handle different policy.linesep lengths correctly. (#8803) 2019-05-13 21:07:39 -04:00
test_headerregistry.py bpo-37482: Fix email address name with encoded words and special chars (GH-14561) 2019-08-21 16:00:39 -07:00
test_inversion.py
test_message.py bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119) 2019-06-25 10:03:19 -07:00
test_parser.py
test_pickleable.py
test_policy.py Fix infinite loop in email folding logic (GH-12732) 2019-07-16 10:50:01 -07:00
test_utils.py bpo-35317: Fix mktime() error in test_email (GH-10721) 2018-11-27 12:40:50 +01:00
torture_test.py