Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
master, 3.3.0
-
None
Description
As pointed out by pleira, failing sieve processing can generate an mail infinite loop.
SieveExecutor::handleFailure sends a mail to the user, that is also SIEVE processed (and thus fails) creating a loop.
To prevent this loop, we should avoid Sieve processing on Sieve error notification emails.
In Sieve executor, position a `"SieveNotification" -> true` mail attribute in `SieveExecutor::handleFailure`. In SieveExecutor::execute check this mail attribute and if present and true, do not perform the execution. You will write a unit test in SieveIntegrationTest - Emails with this attribute should not be processed.
If you have any issue don't hesitate to reach us in https://gitter.im/apache/james-project