Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
servicemix-mail-2010.01
-
None
-
Ubuntu 32bits, tomcat gmail
Description
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)
// 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)
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)
}