mirror of https://github.com/python/cpython
6f2f475d5a
raw_data_manager (default for EmailPolicy, EmailMessage) does correct wrapping of 'text' parts as long as the message contains characters outside of 7bit US-ASCII set: base64 or qp Content-Transfer-Encoding is applied if the lines would be too long without it. It did not, however, do this for ascii-only text, which could result in lines that were longer than policy.max_line_length or even the rfc 998 maximum. This changeset fixes the heuristic so that if lines are longer than policy.max_line_length, it will always apply a content-transfer-encoding so that the lines are wrapped correctly. |
||
---|---|---|
.. | ||
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 |