Hi

pop3 has limitations with delete/seen flags on processed mail messages.
Use imap instead if possible.


On Wed, Aug 1, 2012 at 9:38 AM, Caa_man <c...@acs-it.ru> wrote:
> Hi!
>
> I use this route:
> <route>
>   <from
> uri="pop3://mail:110?password=123456&amp;username=mas...@mail.example.com&amp;delete=true&amp;debugMode=true"/>
>   <to uri="wmq:queue:OUT"/>
> </route>
>
> Processing is correct if only one message in mailbox. But a lot of messages
> (f.e. n = 2) in mailbox cause strange processing:
> 1. All n messages were processed correctly: n messages appear in WebSphere
> queue.
> 2. One message was deleted from mailbox.
> 3. After polling timeout go to step #1 with n-1 messages.
>
> And debug log from SUN's Mail framework is:
>
> 12/08/01 12:51:13 S: +OK Microsoft Windows POP3 Service Version 1.0
> <2242010...@mail.example.com> ready.
> 12/08/01 12:51:13 C: USER mas...@mail.example.com
> 12/08/01 12:51:13 S: +OK
> 12/08/01 12:51:13 C: PASS 123456
> 12/08/01 12:51:13 S: +OK User successfully logged on
> 12/08/01 12:51:13 C: STAT
> 12/08/01 12:51:13 S: +OK 2 796
> 12/08/01 12:51:13 C: TOP 1 0
> 12/08/01 12:51:13 S: +OK 398 octects
> *HEADERS OF THE FIRST MESSAGE*
>
> 12/08/01 12:51:13 C: TOP 2 0
> 12/08/01 12:51:13 S: +OK 398 octects
> *HEADERS OF THE SECOND MESSAGE*
>
> 12/08/01 12:51:13 C: RETR 1
> 12/08/01 12:51:13 S: +OK 398 octects
> *HEADERS AND BODY OF THE FIRST MESSAGE*
>
> 12/08/01 12:51:13 C: RETR 2
> 12/08/01 12:51:13 S: +OK 398 octects
> *HEADERS AND BODY OF THE SECOND MESSAGE*
>
> 12/08/01 12:51:13 C: *DELE 1*
> 12/08/01 12:51:13 S: +OK Message marked as deleted
> 12/08/01 12:51:13 C: *QUIT*
> 12/08/01 12:51:13 S: +OK Microsoft Windows POP3 Service Version 1.0
> <2242010...@mail.example.com> signing off.
>
> So we can see that the only the first message had been deleted before
> session closed.
>
> What's going on?
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Problem-with-getting-messages-via-POP3-tp5716652.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cib...@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to