imaplib.IMAP4.uid

IMAP4.uid(command, *args)[source]
Execute “command arg ...” with messages identified by UID,
rather than message number.

(typ, [data]) = <instance>.uid(command, arg1, arg2, ...)

Returns response appropriate to ‘command’.