You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
imaplib: add a uid keyword to command methods with a UID variant #153502
This is inconvenient: the arguments are the same as the regular method, but they
must be passed positionally after a command-name string, and the return value of uid() is not always the same as the corresponding method (e.g. uid('COPY')
returns the untagged FETCH responses rather than the tagged completion text).
Proposal: add a keyword-only uid=False parameter to the command methods that
have a UID variant, so that
M.fetch(message_set, '(FLAGS)', uid=True)
is equivalent to M.uid('FETCH', ...).
Affected methods: copy, move, fetch, store, search, sort, thread
and expunge. UID EXPUNGE (RFC 4315) takes a message set, so expunge()
also gains an optional message_set argument, required when uid=True.
uid() stays for extension commands and forward compatibility.
Activity
gh-153502: Add uid parameter to imaplib command methods (GH-153508)