Skip to content

[3.15] gh-143921: Narrow the control character check in imaplib commands (GH-153067)#153135

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-d0921ef-3.15
Jul 5, 2026
Merged

[3.15] gh-143921: Narrow the control character check in imaplib commands (GH-153067)#153135
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-d0921ef-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Only NUL, CR and LF are rejected now. Other control characters are
valid in quoted strings and can occur in mailbox names returned by
the server, so they are now accepted and sent quoted.
(cherry picked from commit d0921ef)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Fable 5 noreply@anthropic.com

…ds (pythonGH-153067)

Only NUL, CR and LF are rejected now.  Other control characters are
valid in quoted strings and can occur in mailbox names returned by
the server, so they are now accepted and sent quoted.
(cherry picked from commit d0921ef)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
@miss-islington miss-islington requested a review from a team as a code owner July 5, 2026 15:25
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 5, 2026 15:41
@serhiy-storchaka serhiy-storchaka merged commit f2cd7ef into python:3.15 Jul 5, 2026
55 checks passed
@miss-islington miss-islington deleted the backport-d0921ef-3.15 branch July 5, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants