]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-153502: Add uid parameter to imaplib command methods (GH-153508)
authorSerhiy Storchaka <storchaka@gmail.com>
Fri, 10 Jul 2026 12:08:11 +0000 (15:08 +0300)
committerGitHub <noreply@github.com>
Fri, 10 Jul 2026 12:08:11 +0000 (15:08 +0300)
commitc98e984b12de54305416498b98ed2e2c77e9849e
tree04d0e83a36997309c2842789680bed3c2fc1a4e8
parent106eb532ea3b243423e62a702719e9d3c0e40c16
gh-153502: Add uid parameter to imaplib command methods (GH-153508)

Add a keyword-only uid=False argument to IMAP4.copy(), move(), fetch(),
store(), search(), sort(), thread() and expunge(), selecting the UID
variant of the command as a shorthand for uid().  expunge() also gains
an optional message_set argument, required for UID EXPUNGE.

Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>
Doc/library/imaplib.rst
Doc/whatsnew/3.16.rst
Lib/imaplib.py
Lib/test/test_imaplib.py
Misc/NEWS.d/next/Library/2026-07-10-18-30-00.gh-issue-153502.uIdKw0.rst [new file with mode: 0644]