I am using %RetrievedEmails[0]% to make only the latest message unread in the Inbox of an IMAP mailbox.
First I retrieve emails and mark them as read
Then I process email messages with variable %RetrievedEmails[0]% to mark the latest message as unread
For some reason this is selecting a message somewhere about 18 into the inbox. If I use %RetrievedEmails[18]% it selects the latest message.
Any idea what may cause this? Is there a simple way of getting latest message via IMAP?
Thanks