Skip to content

[3.14] gh-88574: Do not swallow the line after a terminating literal in imaplib (GH-153317)#153325

Merged
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-6b81784-3.14
Jul 8, 2026
Merged

[3.14] gh-88574: Do not swallow the line after a terminating literal in imaplib (GH-153317)#153325
serhiy-storchaka merged 1 commit into
python:3.14from
miss-islington:backport-6b81784-3.14

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

GH-152751 skipped a spurious blank line after a literal unconditionally,
corrupting a response that ends with a literal (such as a mailbox name
returned by LIST): its empty trailer was mistaken for the blank and the
following line was swallowed.

The blank is now skipped only inside an unclosed parenthesis. After a
literal that ends the response it instead arrives before the next
response and is skipped there.
(cherry picked from commit 6b81784)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 noreply@anthropic.com

…n imaplib (pythonGH-153317)

pythonGH-152751 skipped a spurious blank line after a literal unconditionally,
corrupting a response that ends with a literal (such as a mailbox name
returned by LIST): its empty trailer was mistaken for the blank and the
following line was swallowed.

The blank is now skipped only inside an unclosed parenthesis.  After a
literal that ends the response it instead arrives before the next
response and is skipped there.
(cherry picked from commit 6b81784f57c6e7ddef61c8db26bb896b3633dcae)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
@miss-islington miss-islington requested a review from a team as a code owner July 8, 2026 11:46
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 8, 2026 11:47
@serhiy-storchaka serhiy-storchaka merged commit 0dbb00e into python:3.14 Jul 8, 2026
49 checks passed
@miss-islington miss-islington deleted the backport-6b81784-3.14 branch July 8, 2026 12:12
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