PDA

View Full Version : How can I avoid an email to get deleted after retrieval



fkh
Feb 4th, 2010, 07:09 AM
Hi guys,

I'm using an int-mail:inbound-channel-adapter to poll emails from a pop3 mailbox but couldn't find any option to specify that the email doesn't get deleted after it has been retrieved. Am I missing something or is this not possible yet?

Any help is appreciated.

fkh

oleg.zhurakousky
Feb 4th, 2010, 12:02 PM
Currently we don't expose this attribute via inbound-channel-adapter

I opened up a JIRA issue so you can follow on its progress:
http://jira.springframework.org/browse/INT-982

Meanwhile you can sub-class Pop3MailReciever class and override

shouldDeleteMessages()

fkh
Feb 4th, 2010, 12:19 PM
Hi Oleg,

thank you for your quick response and the workaround.

fkh

Mark Fisher
Jun 8th, 2010, 04:24 PM
@fkh can you describe how you are avoiding duplicates when polling the pop3 mailbox?