cpython/Lib/email
Miss Islington (bot) a5d1e3318c
[3.12] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#159066)
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 06:38:29 -07:00
..
mime gh-102498 Clean up unused variables and imports in the email module (#102482) 2023-04-24 19:19:28 +00:00
__init__.py
_encoded_words.py
_header_value_parser.py [3.12] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#159066) 2026-10-25 06:38:29 -07:00
_parseaddr.py
_policybase.py [3.12] gh-124452: Fix header mismatches when folding/unfolding with email message (GH-125919) (#126916) 2024-11-17 15:12:29 -05:00
architecture.rst
base64mime.py
charset.py gh-102498 Clean up unused variables and imports in the email module (#102482) 2023-04-24 19:19:28 +00:00
contentmanager.py
encoders.py
errors.py [3.12] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122599) 2024-08-06 19:07:19 +02:00
feedparser.py [3.12] gh-106186: Don't report MultipartInvariantViolationDefect for valid multipart emails when parsing header only (GH-107016) (#107111) 2023-07-23 14:28:28 +02:00
generator.py [3.12] gh-144125: email: verify headers are sound in BytesGenerator 2026-02-13 16:04:54 +00:00
header.py
headerregistry.py
iterators.py
message.py [3.12] gh-136063: fix quadratic-complexity parsing in email.message._parseparam (GH-136072) (#140829) 2025-12-22 14:51:27 +01:00
parser.py
policy.py [3.12] gh-124452: Fix header mismatches when folding/unfolding with email message (GH-125919) (#126916) 2024-11-17 15:12:29 -05:00
quoprimime.py
utils.py [3.12] [CVE-2023-27043] gh-102988: Reject malformed addresses in email.parseaddr() (GH-111116) (#123766) 2024-09-06 12:46:16 +02:00