Solved

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

Posted on 2014-04-26
2
1,890 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
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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Google is more than just a search engine. Over the years the company has developed a wide range of online services that are readily available to all users. This article highlights how one can use Google services for simple project management.
This process describes the steps required to Import and Export data from and to .pst files using Exchange 2010. We can use these steps to export data from a user to a .pst file, import data back to the same or a different user, or even import data t…
This Micro Tutorial demonstrates in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.
This Micro Tutorial will demonstrate how to use comments in Google Docs. You will learn how to create, edit, and delete a comment.

743 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now