cpython/Lib/email
Miss Islington (bot) d8f88eca61
[3.13] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#160456)
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>
Co-authored-by: T. Wouters <thomas@python.org>
2026-10-25 07:40:24 -07:00
..
mime
__init__.py
_encoded_words.py [3.13] gh-62978: Use Python 3 terms in the email package docs (GH-155190) (GH-155637) 2026-08-12 17:12:40 +00:00
_header_value_parser.py [3.13] gh-87720 Fix additional header refolding-quoting edge case (GH-134271) (#160456) 2026-10-25 07:40:24 -07:00
_parseaddr.py [3.13] gh-101913: changed wording of docstring for _parsedate_tz (GH-134446) (#150798) 2026-06-02 13:52:09 -04:00
_policybase.py [3.13] gh-62978: Use Python 3 terms in the email package docs (GH-155190) (GH-155637) 2026-08-12 17:12:40 +00:00
architecture.rst
base64mime.py
charset.py [3.13] gh-62978: Use Python 3 terms in the email package docs (GH-155190) (GH-155637) 2026-08-12 17:12:40 +00:00
contentmanager.py [3.13] gh-150771: Fix email serialization for shift_jis and euc-jp (GH-151120) (#152953) 2026-08-04 12:14:23 +02:00
encoders.py gh-102507 Remove invisible pagebreak characters (#102531) 2023-03-08 13:58:14 +00:00
errors.py [3.13] gh-121650: Encode newlines in headers, and verify headers are sound (GH-122233) (#122484) 2024-08-06 19:06:41 +02:00
feedparser.py [3.13] gh-68552: fix defects policy (GH-138579) (#142367) 2025-12-09 07:39:03 +00:00
generator.py [3.13] gh-148192: Fix Generator._make_boundary behavior with CRLF line endings. (GH-148193) (#148549) 2026-04-14 12:21:55 -04:00
header.py [3.13] gh-62978: Use Python 3 terms in the email package docs (GH-155190) (GH-155637) 2026-08-12 17:12:40 +00:00
headerregistry.py [3.13] gh-79986: Add parsing for References/In-Reply-To email headers (GH-137201) (#142574) 2025-12-21 14:36:23 -05:00
iterators.py
message.py [3.13] gh-62978: Use Python 3 terms in the email package docs (GH-155190) (GH-155637) 2026-08-12 17:12:40 +00:00
parser.py [3.13] gh-139434: Update selected RFC 2822 references to RFC 5322 (GH-139435) (#141024) 2025-11-04 16:22:31 -05:00
policy.py [3.13] gh-62978: Use Python 3 terms in the email package docs (GH-155190) (GH-155637) 2026-08-12 17:12:40 +00:00
quoprimime.py [3.13] gh-145831: email.quoprimime: decode() leaves stray \r when eol='\r\n' (GH-145832) (#148311) 2026-04-10 08:51:34 -04:00
utils.py [3.13] gh-62978: Use Python 3 terms in the email package docs (GH-155190) (GH-155637) 2026-08-12 17:12:40 +00:00