+1 vote

When I retrieve messages with your IMAP component, it's automatically marks them as "Seen"/"Read" (var eml = imap.GetMessageByUID(uid);)

My Questions:

  1. can I set it to not mark it as read automatically?
  2. if no, can I get the correct status before its changes?
by

1 Answer

0 votes
 
Best answer

You can use Imap.Peek* methods, if you don't want your IMAP server to mark messages as seen.

var eml = imap.PeekMessageByUID(uid);
by (297k points)
...