Click here to Skip to main content
15,891,677 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello Everyone
I am trying to develope an application that can read emails from mail server. I have configured my Mail server with IMAP. I got code to do so from here but it gives me only unread emails. it might be because of seen emails are delete by mail server(May Be). What i want is to access all emails seen , unseen, sent items, drafts etc.
Can any one help me.
I appreciate your help.
Posted

1 solution

Fundamentals of the JavaMail API[^]

unfortunately only available as PDF, pretty great tutorial.

Your Problem:
You are receiving unread messages - but not the ones that have already been seen? That would need you to set the Flag.SEEN on the messages when you display them.

Normally one receives a complete Array of Message objects of the corresponding folder.
You're probably filtering that Array for a the flag "Flag.SEEN" to be not set.
 
Share this answer
 

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