This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: imaplib fails when server sends extra blank line after literal value
Type: behavior Stage: patch review
Components: Library (Lib) Versions: Python 3.10, Python 3.9
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: iritkatriel, jrlevine
Priority: normal Keywords: patch

Created on 2021-06-13 05:34 by jrlevine, last changed 2022-04-11 14:59 by admin.

Pull Requests
URL Status Linked Edit
PR 26701 open jrlevine, 2021-06-13 05:35
Messages (3)
msg395729 - (view) Author: John L (jrlevine) * Date: 2021-06-13 05:34
Some IMAP servers return an extra blank line after a counted literal value, which makes imaplib crash.
MacOS mail and T'bird handle the blank line OK so it seems to be a somewhat common bug.
msg410655 - (view) Author: Irit Katriel (iritkatriel) * (Python committer) Date: 2022-01-15 19:13
How does it fail? Can you provide a reproducer and add a unit test to the PR?
msg410976 - (view) Author: John L (jrlevine) * Date: 2022-01-19 19:33
It causes an exception and traceback, don't remember which exception six months later.  I'll see if I can add a suitable test case to the unit test.
Date User Action Args
2022-04-11 14:59:46adminsetgithub: 88574
2022-01-19 19:33:36jrlevinesetmessages: + msg410976
2022-01-15 19:13:47iritkatrielsetversions: - Python 3.6, Python 3.7, Python 3.8
nosy: + iritkatriel

messages: + msg410655

type: crash -> behavior
2021-06-13 05:35:29jrlevinesetkeywords: + patch
stage: patch review
pull_requests: + pull_request25286
2021-06-13 05:34:08jrlevinecreate