Skip to content

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

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

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

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 262b6a0)

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
@bedevere-app bedevere-app Bot mentioned this pull request Jul 2, 2026
2 tasks
@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 2, 2026 07:16
@serhiy-storchaka serhiy-storchaka merged commit 3f0ef65 into python:3.13 Jul 2, 2026
42 checks passed
@miss-islington miss-islington deleted the backport-262b6a0-3.13 branch July 2, 2026 07:39
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