]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.15] gh-88574: Skip a spurious blank line after a literal in imaplib (GH-152751...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 2 Jul 2026 13:25:34 +0000 (15:25 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Jul 2026 13:25:34 +0000 (13:25 +0000)
commit9317d52169d2d845a74a082e2df86ce3978832f3
tree90d04c1674b109fd8b652ef077793ccc8c80f843
parentd8493ae633de28f68978becca14224154ffc7e9c
[3.15] gh-88574: Skip a spurious blank line after a literal in imaplib (GH-152751) (GH-152884)

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.
(cherry picked from commit 53ff1a28ccfa69925c3c452cfc003970640fa65b)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
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]