You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by "Rafał Felczuk (JIRA)" <ji...@apache.org> on 2010/12/03 13:01:11 UTC
[jira] Commented: (SMXCOMP-826) MailPollerEndpoint error in the
processing of mail set mail as Read (use gmail - imaps)
[ https://issues.apache.org/jira/browse/SMXCOMP-826?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12966500#action_12966500 ]
Rafał Felczuk commented on SMXCOMP-826:
---------------------------------------
To fix this i must overide whole class. But I do not want to.
> MailPollerEndpoint error in the processing of mail set mail as Read (use gmail - imaps)
> ---------------------------------------------------------------------------------------
>
> Key: SMXCOMP-826
> URL: https://issues.apache.org/jira/browse/SMXCOMP-826
> Project: ServiceMix Components
> Issue Type: Bug
> Components: servicemix-mail
> Affects Versions: servicemix-mail-2010.01
> Environment: Ubuntu 32bits, tomcat gmail
> Reporter: Rafał Felczuk
>
> This issue i observed on the gmail.
> Incorrect processing of mail, it sets the read. A mail will never be processed again.
> Poll method:
> // now check if delivery succeeded or went wrong
> if (io.getStatus() == ExchangeStatus.ERROR) {
> Exception e = io.getError();
> if (e == null) {
> e = new JBIException("Unexpected error occured...");
> }
> // I propose here
> // mailMsg.setFlag(Flags.Flag.SEEN, false);
> // or method that user can overide
> throw e;
> } else {
> // then mark the mail as processed (only if no errors)
> if (deleteProcessedMessages) {
> // processed messages have to be marked as deleted
> mailMsg.setFlag(Flags.Flag.DELETED, true);
> } else {
> // processed messages have to be marked as seen
> mailMsg.setFlag(Flags.Flag.SEEN, true);
> }
> // remember the processed mail if needed
> if (isProcessOnlyUnseenMessages() && isPopProtocol && uid != null) {
> // POP3 doesn't support flags, so we need to
> // remember processed mails
> this.seenMessages.add(uid);
> }
> }
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.