Hi Yeah that is the idea.
deleteProcessedMessages=false would NOT delete the mail but set the status to SEEN. deleteProcessedMessages=true will DELETE the mail So I guess that even though you have processOnlyUnseenMessages=true then the mail status is somehow not filtering the SEEN. What mail server is you using? Could you try adding some debug logging to org.apache.camel and also the mail debug as well? http://activemq.apache.org/camel/mail.html debugMode false As of Camel 1.4 its possible to enable the debug mode on the underlying mail framework. SUN Mail framework will default output to System.out. Adding debugMode=true to the URI Med venlig hilsen Claus Ibsen ...................................... Silverbullet Skovsgårdsvænget 21 8362 Hørning Tlf. +45 2962 7576 Web: www.silverbullet.dk -----Original Message----- From: HockeyDave [mailto:[EMAIL PROTECTED] Sent: 23. oktober 2008 00:04 To: [email protected] Subject: processOnlyUnseenMessages=true not working in 1.4.0? <route> <!-- &deleteProcessedMessages=true&contentType=multipart/mixed --> <from uri="pop3://[EMAIL PROTECTED]:110?password=abcdefg&consumer.delay=60000&processOnlyUnseenMessages=true&deleteProcessedMessages=false" /> <to uri="bean:MailReader" /> </route> My expectation is that processOnlyUnseenMessage being true would mean that my MailReader bean's process method would only be called once per mail message. However, unless I set deleteProcessedMessages=true (or leave it defaulted), then the mail reader bean gets called every 60 seconds for the same mail message. Am I missing something? Thanks. -- View this message in context: http://www.nabble.com/processOnlyUnseenMessages%3Dtrue-not-working-in-1.4.0--tp20120636s22882p20120636.html Sent from the Camel - Users mailing list archive at Nabble.com.
