This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JavaMail Flags, IMAP and Gmail Problem

 
Mohammad Abadi
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am trying to get all UNREAD emails from the 'sent mail' folder in my gmail account.
The problem is Gmail automatically set all the sent item flag to 'Flag.SEEN'. Whenever I try to retrieve only the messages that have not been seen yet, nothing is returned because I am searching the folder only for messages that have not been seen.
I tried to flag (Flag.FLAGGED) each message I read, but gmail DELETES all the messages I flagged.

Any suggestions?



 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How could a sent email possibly be unseen?
 
Mohammad Abadi
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ulf Dittmer wrote:How could a sent email possibly be unseen?


This is what I am trying to say, all the sent items are 'seen' but is there any other flag or method to only retrieve the messages from 'sent mail' folder that have not been read by the application?
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic