[ 
https://issues.apache.org/activemq/browse/SM-1690?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lars Heinemann resolved SM-1690.
--------------------------------

    Resolution: Fixed

The deletion of messages works fine with POP protocol.

I added a list of already seen messages which contains the UID's of already 
processed messages.
This list is only used if the protocol is POP3 and you defined that only unseen 
messages should be processed.
The condition of flagging a message as READ is that the sendSync returned 
without errors. If an error occurs with sending, the mail
will be processed again at the next poll cycle.

There are now 2 new boolean flags to set for POP3 protocol:

forgetTopHeaders:  
If set to true, the POP3 TOP command will not be used to fetch message headers. 
This is useful for POP3 servers that don't properly implement the TOP command, 
or that provide incorrect information in the TOP command results. Defaults to 
false.

disableTop:
If set to true, the headers that might have been retrieved using the POP3 TOP 
command will be forgotten and replaced by headers retrieved as part of the POP3 
RETR command. Some servers, such as some versions of Microsft Exchange and IBM 
Lotus Notes, will return slightly different headers each time the TOP or RETR 
command is used. To allow the POP3 provider to properly parse the message 
content returned from the RETR command, the headers also returned by the RETR 
command must be used. Setting this property to true will cause these headers to 
be used, even if they differ from the headers returned previously as a result 
of using the TOP command. Defaults to false.

For further information have a look at:
http://java.sun.com/products/javamail/javadocs/index.html


> servicemix-mail is not handling POP3 protocol correctly
> -------------------------------------------------------
>
>                 Key: SM-1690
>                 URL: https://issues.apache.org/activemq/browse/SM-1690
>             Project: ServiceMix
>          Issue Type: Bug
>          Components: servicemix-mail
>    Affects Versions: servicemix-mail-2008.01
>            Reporter: Lars Heinemann
>            Assignee: Lars Heinemann
>             Fix For: servicemix-mail-2008.02
>
>
> It seems that POP3 support is not really done correctly.
> POP3 doesn't know about SEEN and UNSEEN message flags...those are not 
> supported by default.
> We need to do a workaround for remembering seen messages (at least until 
> endpoint is restartet).
> Also checking the deletion of processed mails with POP3. Seems that there are 
> problems.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to