Search code examples
c#visual-studioimappop3mailsystem.net

MailSystem.Net is there a way to check the status (if it is read or unread) of an email?


If anyone is familiar with MailSystem.Net, can you help me?

I would like to see the status of an email that is fetched with Imap4 and Pop3. I would like to see if the fetched email has already been read or is still unread.

int nIndex = 10;
Header EmailMessage = inbox.Fetch.HeaderObject(nIndex);

I would like to know if the fetched email is read or unread. Any help would be greatly appreciated.


Solution

  • With Exchange server then you can. With POP3 no as the message is downloaded. With IMAP you can with MessageInfo.Flags which has flag Flag.Seen property.

    As comments above note, you can only detect if the email has been opened but not read.