How can I retrieve the list of IMAP UIDs from the selected folder? I want to get the list of mail UIDs, so I am passing the 1150 UID FETCH FLAGS (\Seen \Flagged), but I am not able to retrieve the list: it gives me an error like BAD Command. So how I can retrieve the list of UID from the selected folder?
How can I retrieve the list of IMAP UIDs from the selected folder? I
Share
The easiest (and most compact) way to list all the UIDs in the currently-selected folder is via
UID SEARCH ALL:The errors in your
UID FETCHrequest were leaving out the sequence-set and including a list of flags. If you rewrote it asor
it would work.