Mailing with IMAP: How to detect that a message has been moved from one folder to another?
Using JavaMail API and IMAP, i want to learn that a message has been moved from folder a to b. how can i do that without adding listeners? i mean i want to discover the changes of messages when i login to the account and open the folder. The problem is if you have 3 messages in folder a with ids 1 2 and 3 and you move the message with id 3 to the folder B, the id of the message changes and we have a message with id 1 in folder B. My goal is synchronizing the message structure in mail server with my own local server. I have to keep all message information, flags etc on my own. So on each login,