0

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.

D.S.
  • 29
  • 6
  • 1
    An email server has no idea whether any human eyes were used yet. Thank heavens. – Hans Passant Sep 23 '19 at 07:21
  • What are you asking? How to verify that the *recipients* have seen the email sent by your code? Or to verify that the user of your application has actually read the email you downloaded? MailSystem.NET can't do something that isn't already supported by the protocols – Panagiotis Kanavos Sep 23 '19 at 07:27
  • I was simply asking if you can check to see if the email was marked seen/read or unseen/unread. – D.S. Sep 23 '19 at 12:55

1 Answers1

0

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.

Peter Smith
  • 5,528
  • 8
  • 51
  • 77