Question:
When I loop through the messages in an IMAP mailbox all the messages get marked as Seen.
I only want specific messages (based on the email body content) to be marked as ‘Seen’
How can I prevent or reset the seen flag?
Answer:
The Chilkat IMAP component has a PeekMode property. If set to true, it prevents emails from being marked Seen when retrieved. The Seen flag may be set by calling the Imap.SetFlag method.