You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by "Tellier Benoit (JIRA)" <se...@james.apache.org> on 2017/12/18 06:43:00 UTC

[jira] [Comment Edited] (JAMES-2263) onMailetException doesn't work even the default onMailetException="error"

    [ https://issues.apache.org/jira/browse/JAMES-2263?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16294561#comment-16294561 ] 

Tellier Benoit edited comment on JAMES-2263 at 12/18/17 6:42 AM:
-----------------------------------------------------------------

I am not familiar either with that part of the code.

I will have a look at this `onMailetException`. I also believe the default behaviour should be to continue the processing of this email on top of the `error` processor (if not already the case). Using a processor here allow composability (you can discard, bounce, store the message, maybe target a reprocessing, etc...) I will have a look.

Thanks for raising that concern.


was (Author: btellier):
I am not familiar either with that part of the code.

I will have a look at this `onMailetException`. I also believe the default behaviour should be to continue the processing of this email on top of the `error` processor (if not already the case). I will have a look.

Thanks for raising that concern.

> onMailetException doesn't work even the default onMailetException="error"
> -------------------------------------------------------------------------
>
>                 Key: JAMES-2263
>                 URL: https://issues.apache.org/jira/browse/JAMES-2263
>             Project: James Server
>          Issue Type: Bug
>          Components: Matchers/Mailets (bundled), SpoolManager & Processors
>    Affects Versions: 3.0.0-beta5
>            Reporter: Taro App
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org