Jan 18th, 2012, 04:41 PM
Email sync in readonly mode (receive/sync via peeking) with Spring Integration imap
The integration requirement is to read in all messages from the last successful read of the imap client including new and read emails.
This is a fairly popular and consistent requirement to not miss any messages and not process messages twice. Also, the same should work after JVM restarts.
This is similar to getting every email in your client like you do in iphone or android clients or other mail clients.
The challenge is with should-delete-messagess and should-mark-messages-as-read properties in the receive email integration adapters. Currently, this is not working if you set both properties to false trying to not change the state of the emails on the server (i.e. pure read only mode), so when you open e.g. gmail in browser and read the email making its state as read, the imap client does not download it, even if the message is arrived to the gmail inbox after the last read of the imap client, essentially missing the message.
How do you do something like that with the imap adapters? Is it possible? Any filers for search criteria of folder. ALso, if multiple imap clients are syncing how to make sure spring integration does not loose any message for read when it needs to sniff every email in the inbox from the last read point, most recent from its last read.
Any thoughts on how to do this or is it not possible with the adapters?
Thanks and Cheers...
Last edited by coderinabstract; Jan 23rd, 2012 at 12:30 PM.
Jan 23rd, 2012, 12:17 PM
Anybody have any guidance on this.. if not possible it would be good to know and think about starting to writing something custom... Cheers
Tags for this Thread