]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] 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:20:36 +0000 (15:20 +0200)
committerGitHub <noreply@github.com>
Thu, 2 Jul 2026 13:20:36 +0000 (13:20 +0000)
commit8b3b7644e9e8a1203c7b9091abd71918e8a59836
tree39c2fc2893c0d4f362fa389bea6cbc1f5042953d
parentf86e295a40a1601505d7d7a52c8caf15d9f8cd1b
[3.14] gh-88574: Skip a spurious blank line after a literal in imaplib (GH-152751) (GH-152885)

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]