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

onMailetException doesn't work even the default onMailetException="error"

    XMLWordPrintableJSON

Details

    Description

      Tested with 3.0.1. When a mailet raises an exception, the message is not sent to the processor specified with onMailetException. Only onMailetException="ignore" works. Other values don't work, the even the default onMailetException="error". Instead the message is somehow processed 7 times and then discarded.

      See org.apache.james.mailetcontainer.impl.camel.CamelProcessor.java:106, the exception and the onMailetException value is passed to ProcessorUtil.handleException, which then re-throw the exception. The re-thrown exception is never catched and the mail object is discard at org.apache.james.mailetcontainer.impl.JamesMailSpooler.java:183.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              apptaro Taro App
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: