Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Check for unread emails

Tags:

c#

email

imap

I'm looking for a way to check the number of unread emails on an email account. Any tips?

EDIT: As described in the tags, for C#. As I learned IMAP is the way to go and I confirmed all email accounts I'm going to use have IMAP activated :)

like image 889
Qosmo Avatar asked Oct 24 '10 02:10

Qosmo


1 Answers

POP

You can use OpenPOP.net to read emails using POP protocol. The problem with POP is that it does not hold details whether it was unread or not. So I think this will not be of much use to you. You have have your own way of downloading and tagging emails as read or unread.

IMAP

This question in SO has some links for examples using IMAP. IMAP has details about mail status(read/unread).

Please explain more about your requirement.

like image 124
Shoban Avatar answered Sep 25 '22 14:09

Shoban