Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.0.0
-
None
Description
Those processors have 'Delete Messages' property but even if user configured it to 'true' messages are not deleted from mail server.
AbstractEmailProcessor which is a superclass for both processors, has been using:
emailMessage.setFlag(Flags.Flag.DELETED, this.shouldSetDeleteFlag);
However, since we are using Spring mail, the underlying receiver does not close the inbox connection so messages are not deleted.
Instead, we should use:
receiver.setShouldDeleteMessages(boolean)
To specify whether it should delete fetched messages or not.
Attachments
Issue Links
- links to