camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Whytock <dwhyt...@gmail.com>
Subject Re: POP3 mail deletion
Date Thu, 05 May 2011 14:10:39 GMT
I will, yes, but correcting that in my copy didn't seem to fix the
problem.  I'll do a little more research and testing, try to get it
working and submit a patch.

On Thu, May 5, 2011 at 9:20 AM, Claus Ibsen <claus.ibsen@gmail.com> wrote:
> Hi
>
>
>
> http://javamail.kenai.com/nonav/javadocs/com/sun/mail/pop3/package-summary.html
>
> Seems like we should only set the reset when we do NOT want to delete
> the mails with POP3.
> eg so if delete=true, we do not set this option.
>
>
> I think the reset is a bug. Do you mind creating a ticket?
>
>
>
> On Wed, May 4, 2011 at 5:29 PM, Donald Whytock <dwhytock@gmail.com> wrote:
>> A design question regarding the mail component...
>>
>> When I tried using the mail component with POP3, I had a problem with
>> deleting messages.  Depending on the server I was talking to, I had
>> either inconsistent and sporadic success, or consistent lack of
>> success.
>>
>> I think I see what might be the problem.  JavaMail recognizes a
>> property called mail.pop3.rsetbeforequit, which, if true, sends a RSET
>> command to the POP3 server just before disconnecting.  The RSET
>> command is effectively a global undelete for the session.
>>
>> By default, this is set to true in MailConfiguration in the mail
>> component.  I'm inclined to make this dependent on the delete field;
>> this would mean setting the delete field in the URI would result in
>> any and all message deletes done during the session being
>> automatically resolved.
>>
>> My experience with POP3 and Camel mail handling is limited.  Is there
>> a reason not to do this?
>>
>> Don
>>
>
>
>
> --
> Claus Ibsen
> -----------------
> FuseSource
> Email: cibsen@fusesource.com
> Web: http://fusesource.com
> CamelOne 2011: http://fusesource.com/camelone2011/
> Twitter: davsclaus
> Blog: http://davsclaus.blogspot.com/
> Author of Camel in Action: http://www.manning.com/ibsen/
>

Mime
View raw message