Skip to content

gh-98092: Add imaplib.IMAP4.id method#153136

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:imaplib-id
Jul 5, 2026
Merged

gh-98092: Add imaplib.IMAP4.id method#153136
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:imaplib-id

Conversation

@serhiy-storchaka

Copy link
Copy Markdown
Member

Add a wrapper for the IMAP ID command (RFC 2971). It takes a mapping of field names to values (a value can be None) and returns the server identification information from the untagged ID response. With no or empty fields, ID NIL is sent.

A mapping rather than keyword arguments, because standard field names include os-version and support-url, which are not valid Python identifiers. Field names and values are always sent as quoted strings (they are RFC 3501 strings, atoms are not allowed in this position).

🤖 Generated with Claude Code

Add a wrapper for the IMAP ID command (RFC 2971).  It takes a mapping
of field names to values and returns the server identification
information from the untagged ID response.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@read-the-docs-community

read-the-docs-community Bot commented Jul 5, 2026

Copy link
Copy Markdown

Documentation build overview

📚 cpython-previews | 🛠️ Build #33448517 | 📁 Comparing 6bf666f against main (d0921ef)

  🔍 Preview build  

4 files changed
± library/imaplib.html
± library/urllib.robotparser.html
± whatsnew/3.16.html
± whatsnew/changelog.html

@serhiy-storchaka serhiy-storchaka enabled auto-merge (squash) July 5, 2026 17:07
@serhiy-storchaka serhiy-storchaka merged commit 28a8c18 into python:main Jul 5, 2026
51 checks passed
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.

1 participant