Skip to content

[3.15] gh-108280: Give a meaningful error for an invalid imaplib greeting (GH-152768)#152856

Merged
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-262b6a0-3.15
Jul 2, 2026
Merged

[3.15] gh-108280: Give a meaningful error for an invalid imaplib greeting (GH-152768)#152856
serhiy-storchaka merged 1 commit into
python:3.15from
miss-islington:backport-262b6a0-3.15

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

Connecting to a server that does not send a valid IMAP4 greeting, such as
a POP3 server answering on the IMAP port, failed with the unhelpful
"imaplib.IMAP4.error: None". A meaningful message is now raised instead.
(cherry picked from commit 262b6a0)

Co-authored-by: Serhiy Storchaka storchaka@gmail.com
Co-authored-by: Claude Opus 4.8 (1M context) noreply@anthropic.com

…ing (pythonGH-152768)

Connecting to a server that does not send a valid IMAP4 greeting, such as
a POP3 server answering on the IMAP port, failed with the unhelpful
"imaplib.IMAP4.error: None".  A meaningful message is now raised instead.
(cherry picked from commit 262b6a0df5a325e788928ab0cd514fa4786571b4)

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@miss-islington miss-islington requested a review from a team as a code owner July 2, 2026 07:15
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 2, 2026 07:16
@serhiy-storchaka serhiy-storchaka merged commit 6a1a23f into python:3.15 Jul 2, 2026
55 checks passed
@miss-islington miss-islington deleted the backport-262b6a0-3.15 branch July 2, 2026 07:46
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