cpython/Lib/test/test_email
Mike Edmunds 5aaf416858
gh-80222: Fix email address header folding with long quoted-string (#122753)
Email generators using email.policy.default could incorrectly omit the
quote ('"') characters from a quoted-string during header refolding,
leading to invalid address headers and enabling header spoofing. This
change restores the quote characters on a bare-quoted-string as the
header is refolded, and escapes backslash and quote chars in the string.
2025-01-18 19:50:52 -05:00
..
data
__init__.py
__main__.py
test__encoded_words.py
test__header_value_parser.py
test_asian_codecs.py
test_contentmanager.py
test_defect_handling.py
test_email.py
test_generator.py
test_headerregistry.py
test_inversion.py
test_message.py
test_parser.py
test_pickleable.py
test_policy.py
test_utils.py
torture_test.py