Solved

C# - OpenPop3 API - How to check new emails only & How to check its location ?

Posted on 2014-04-26
2
2,154 Views
Last Modified: 2014-11-12
Hi,

I am using OpenPOP3 API (sourceforge.net/projects/hpop/) for reading and sending my GMAIL messages.

Questions:

1) When I am using 'Pop3Client.GetMessageCount()' code, I am getting a count of messages present in INBOX + SENT MAIL. Is there a way I can get only those emails which are present in INBOX folder but not in other customized folders?

2) Is there a way to check whether the email is READ or in UNREAD mode ?

Thanks in advance !
0
Comment
Question by:Md Shah
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 12

Accepted Solution

by:
Dave earned 500 total points
ID: 40025476
This sounds like a problem with GMAIL. With POP3 you can only expose one folder and it sounds as if GMAIL is exposing the "All Mail" folder, not the in-box. A bit of googling seems t confirm this.

POP3 knows nothing of read or unread, it only allows you to list, download and delete.

If you want to do folders and read/unread then you need to use IMAP.

Check out the google developer pages for GMAIL APIs

https://developers.google.com/gmail/
0
 
LVL 8

Author Closing Comment

by:Md Shah
ID: 40037913
Thanks !
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Pop culture is prime bait for hackers seeking to infect user’s computers and mobile devices with malicious malware. Hackers know exactly what the latest trends are online and know how to use them to their advantage.
Shows how to create a shortcut to site-search Experts Exchange using Google in the Chrome browser. This eliminates the need to type out site:experts-exchange.com whenever you want to search the site. Launch the Search Engine Menu: In chrome, via you…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question