Ok, i see fetchSize is also a parameter. The only way to don't lose mails in my testcase is to set fetchSize to 1. But that's not a solution, it's only a workaround.
I'm sorry I couldn't find the problem by myself, I could only say it has something to do with the folder.isOpen check. After this all fetched mails are marked as seen, but only 1 message is processed. cgiera wrote > Even if I set the maxMessagesPerPoll option to 1, the fetchsize in this > case is -1. > So all messages will be looped in this case. > In debug mode I have changed the value of the fetchSize to 1 and only one > message gets marked as SEEN. > > I'm not sure if this is solving the whole problem. > > kind regards, > Christoph -- View this message in context: http://camel.465427.n5.nabble.com/MailComponent-MailConsumer-misses-Mails-tp5733010p5733325.html Sent from the Camel - Users mailing list archive at Nabble.com.