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?