Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET email
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 14-Feb-13 2:54am
salah91K
Comments
Sandeep Mewara at 14-Feb-13 8:30am
   
AFAIK, not possible.
salah9 at 14-Feb-13 8:34am
   
k,
thnx for reply

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

POP cannot identify if a msg is read or unread.
Check the below link, guess its exactly what you need
POP Unread Mail[^]
  Permalink  
Comments
salah9 at 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 at 14-Feb-13 8:34am
   
Its not a long process, everything in green is commented out and is not required in the code.
salah9 at 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 at 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 at 15-Feb-13 5:57am
   
kkk,
thnks for your suggestion.
: )
joe_j at 15-Feb-13 6:40am
   
You'r welcome..I found out a link that can help you with aspect. Check it out
http://www.afterlogic.com/kb/articles/how-to-download-unread-emails-in-pop3
And if my answer was helpful, then please Accept it as a solution.
salah9 at 16-Feb-13 3:43am
   
thnx for the link,
i already visited it before.....
and i have no other option, rather than follow procedure what you adviced...

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

  Print Answers RSS
0 OriginalGriff 195
1 ProgramFOX 130
2 Maciej Los 105
3 Sergey Alexandrovich Kryukov 105
4 Afzaal Ahmad Zeeshan 82
0 OriginalGriff 6,564
1 Sergey Alexandrovich Kryukov 6,048
2 DamithSL 5,228
3 Manas Bhardwaj 4,717
4 Maciej Los 4,150


Advertise | Privacy | Mobile
Web01 | 2.8.1411022.1 | Last Updated 14 Feb 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100