cpython/Lib/email
Arkadiusz Hiler 6f2f475d5a
bpo-40597: email: Use CTE if lines are longer than max_line_length consistently (gh-20038)
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.
2020-05-13 20:53:26 -04:00
..
mime
__init__.py
_encoded_words.py bpo-27397: Make email module properly handle invalid-length base64 strings (#7583) 2018-06-12 15:46:22 +03:00
_header_value_parser.py bpo-38708: email: Fix a potential IndexError when parsing Message-ID (GH-17504) 2019-12-08 17:37:34 -08:00
_parseaddr.py bpo-34155: Dont parse domains containing @ (GH-13079) 2019-07-17 14:54:25 -07:00
_policybase.py
architecture.rst
base64mime.py
charset.py bpo-36793: Remove unneeded __str__ definitions. (GH-13081) 2019-05-06 22:29:40 +03:00
contentmanager.py bpo-40597: email: Use CTE if lines are longer than max_line_length consistently (gh-20038) 2020-05-13 20:53:26 -04:00
encoders.py
errors.py bpo-27397: Make email module properly handle invalid-length base64 strings (#7583) 2018-06-12 15:46:22 +03:00
feedparser.py bpo-30835: email: Fix AttributeError when parsing invalid CTE (GH-13598) 2019-06-04 11:00:47 -07:00
generator.py
header.py bpo-27737: Allow whitespace only headers encoding (#13478) 2019-05-22 21:13:16 -04:00
headerregistry.py bpo-39073: validate Address parts to disallow CRLF (#19007) 2020-03-29 20:38:41 -04:00
iterators.py
message.py bpo-33972: Fix EmailMessage.iter_attachments raising AttributeError. (GH-14119) 2019-06-25 10:03:19 -07:00
parser.py Fix infinite loop in email folding logic (GH-12732) 2019-07-16 10:50:01 -07:00
policy.py bpo-33524: Fix the folding of email header when max_line_length is 0 or None (#13391) 2019-05-17 15:28:44 -04:00
quoprimime.py
utils.py bpo-34002: Minor efficiency and clarity improvements in email package. (GH-7999) 2019-09-19 20:25:55 -07:00