cpython/Lib/email
Miss Islington (bot) 26ee788118
[3.11] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#159065)
gh-87720 Fix additional header refolding-quoting edge case (GH-134271)

In this case, the higher level syntactic unit fit on the remainder of
the line in un-encoded format, and that higher level unit was
not a ptext or vtext, so the encoding check failed.  To fix this, we
look inside the current unit to see if has anything that was
originally encoded.
(cherry picked from commit 5a22a62b96)

Co-authored-by: R. David Murray <rdmurray@bitdance.com>
2026-10-25 12:37:37 -07:00
..
mime
__init__.py
_encoded_words.py
_header_value_parser.py [3.11] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#159065) 2026-10-25 12:37:37 -07:00
_parseaddr.py
_policybase.py [3.11] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122608) 2024-09-04 17:37:28 +02:00
architecture.rst
base64mime.py
charset.py
contentmanager.py
encoders.py
errors.py [3.11] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122608) 2024-09-04 17:37:28 +02:00
feedparser.py
generator.py [3.11] gh-144125: email: verify headers are sound in BytesGenerator (#144189) 2026-01-25 17:09:56 +00:00
header.py
headerregistry.py
iterators.py
message.py [3.11] gh-136063: fix quadratic-complexity parsing in email.message._parseparam (GH-136072) (GH-140830) 2025-10-31 18:29:53 +01:00
parser.py
policy.py [3.11] gh-77749: Fix inconsistent behavior of non-ASCII handling in EmailPolicy.fold() (GH-6986) (GH-114607) 2024-01-26 18:30:50 +02:00
quoprimime.py
utils.py [3.11] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116) (#123767) 2024-09-06 12:46:23 +02:00