james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <server-...@james.apache.org>
Subject [jira] [Commented] (JAMES-2263) onMailetException doesn't work even the default onMailetException="error"
Date Fri, 29 Dec 2017 04:11:02 GMT

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

ASF GitHub Bot commented on JAMES-2263:
---------------------------------------

Github user chibenwa commented on the issue:

    https://github.com/apache/james-project/pull/91
  
    Hi,
    
    I also created an other ticket for : 
     - Attaching the encountered exception to the mail
     - Have a HasException matcher (that will allow matching the FQDN of the exception)
    
    This will allow very finned grained error handling while not having to write custom mailet/matcher.
    
    As this is related to this contribution, I thought you might be interested. So I am mentioning
the link here:
    
    https://issues.apache.org/jira/browse/JAMES-2275
    
    This proposal of contribution is on a related topic, should not be too hard to implement,
and might even interest you ;-)
    
    Cheers,
    
    Benoit Tellier


> 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


Mime
View raw message