]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-88574: Skip a spurious blank line after a literal in imaplib (GH-152751)
authorSerhiy Storchaka <storchaka@gmail.com>
Thu, 2 Jul 2026 12:55:58 +0000 (15:55 +0300)
committerGitHub <noreply@github.com>
Thu, 2 Jul 2026 12:55:58 +0000 (15:55 +0300)
commit53ff1a28ccfa69925c3c452cfc003970640fa65b
treec3a61be542b1f49984faa721e275c33f80b191e4
parent753f82db2fed38bf725ded2b333ea3749c81fe82
gh-88574: Skip a spurious blank line after a literal in imaplib (GH-152751)

Some IMAP servers send an extra blank line after the data of a literal.
imaplib mistook it for the response trailer and failed on the next
command.  Such a blank line is now skipped.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Lib/imaplib.py
Lib/test/test_imaplib.py
Misc/NEWS.d/next/Library/2026-07-01-10-00-00.gh-issue-88574.Kz3wQm.rst [new file with mode: 0644]