Uploaded image for project: 'James Server'
  1. James Server
  2. JAMES-2682

Infinite loop can be triggered upon Sieve failure

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • master, 3.3.0
    • 3.4.0
    • Mailet Contributions
    • 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

      Attachments

        Activity

          People

            Unassigned Unassigned
            btellier Benoit Tellier
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: