cpython/Lib/test/test_email
Ashwin Ramaswami 59e8fba718 [3.8] bpo-21315: Fix parsing of encoded words with missing leading ws (GH-13425) (GH-15655)
* [bpo-21315](https://bugs.python.org/issue21315): Fix parsing of encoded words with missing leading ws.

Because of missing leading whitespace, encoded word would get parsed as
unstructured token. This patch fixes that by looking for encoded words when
splitting tokens with whitespace.

Missing trailing whitespace around encoded word now register a defect
instead.

Original patch suggestion by David R. Murray on [bpo-21315](https://bugs.python.org/issue21315).
(cherry picked from commit 66c4f3f38b)

Co-authored-by: Abhilash Raj <maxking@users.noreply.github.com>
(cherry picked from commit dc20fc4311)

Co-authored-by: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com>





https://bugs.python.org/issue21315
2019-09-03 10:08:39 -07:00
..
data
__init__.py Merge with 3.5 2016-09-09 12:09:07 -07:00
__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 [3.8] bpo-21315: Fix parsing of encoded words with missing leading ws (GH-13425) (GH-15655) 2019-09-03 10:08:39 -07:00
test_asian_codecs.py Merge with 3.5 2016-05-06 17:35:21 -04:00
test_contentmanager.py Issue #27076: Doc, comment and tests spelling fixes 2016-05-26 05:35:26 +00:00
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 bpo-34155: Dont parse domains containing @ (GH-13079) 2019-08-09 01:31:27 -07:00
test_generator.py bpo-34424: Handle different policy.linesep lengths correctly. (#8803) 2019-05-13 21:07:39 -04:00
test_headerregistry.py [3.8] bpo-21315: Fix parsing of encoded words with missing leading ws (GH-13425) (GH-15655) 2019-09-03 10:08:39 -07:00
test_inversion.py #28047: Fix calculation of base64 line length. 2016-09-09 15:00:09 -04:00
test_message.py [3.8] bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError (GH-14119) (GH-14380) 2019-06-25 11:38:48 -07:00
test_parser.py #20476: add a message_factory policy attribute to email. 2016-09-09 18:39:18 -04:00
test_pickleable.py
test_policy.py Fix infinite loop in email folding logic (GH-12732) 2019-07-16 11:08:36 -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 Issue 26912: fix broken imports in test_email package. 2016-05-06 17:35:05 -04:00