This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.