Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I am working on a project where, I need to fetch mails from mail-server.
I got solution on Google stating that by using OpenPop.dll, this is possible. By using OpenPop.dll we will get all mails from mail-server, but every time connecting to server will get all mails.
for example if there are 100 mails it will get all 100 mails all the time, but I want to get only UNREAD mails.

My mail-server is of type POP, can anyone help me in getting only unread mails from mail-server.
Posted
Comments
Sandeep Mewara 14-Feb-13 8:30am    
AFAIK, not possible.
salah9 14-Feb-13 8:34am    
k,thnx for reply

1 solution

POP cannot identify if a msg is read or unread.
Check the below link, guess its exactly what you need
POP Unread Mail[^]
 
Share this answer
 
Comments
salah9 14-Feb-13 8:27am    
thnx for reply,
I already visited that page, and found that its long process.
I was looking something quick..

I hope i clear my point.
joe_j 14-Feb-13 8:34am    
Its not a long process, everything in green is commented out and is not required in the code.
salah9 15-Feb-13 2:36am    
but like every time I fetch mails from server i will get all, then i need to differentiate it.
if we see IMAP, in that we can fetch only unread mails. is anything same in POP????
suggestions, advices are welcome...
thnx in advance
joe_j 15-Feb-13 2:43am    
Well as mentioned before POP doesnt have the capability to identify read or unread. If you have no other option than POP then your only way to go about it is to link a database to your app and keep updating all the UIDs of messages that already came in and only download the ones that do not have a UID in your database.
salah9 15-Feb-13 5:57am    
kkk,
thnks for your suggestion.
: )

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900