Noel, here is a patch (only v2 for now) that implements the exception management handling at config.xml level using the "attribute" syntax. It is working fine.
The syntax is <mailet ........ onMatchException="[matchAll|noMatch|error|aProcessorName]" ... onMailetException="[ignore|error|aProcessorName]" ...> The attribute values are not case sensitive. I added a new getInitAttribute(String) method in org.apache.james.core.MailetConfigImpl, but didn't add it to org.apache.mailet.MailetConfig to keep things isolated; changing the interface and org.apache.mailet.GenericMailet would allow any mailet (but unfortunately not matcher) to access any attribute, but I think that this could impact the choices for v3. I'm attaching also a matcher and a mailet for your convenience to test the exception behaviour if you want to. I will after this post a patch to AttachmentFileNameIs and another one to HasAttachment, consistent to this "new" way to control exceptions. Let me know what you think. Vincenzo
onExceptionHandler_v2.patch
Description: Binary data
ThrowTestException.java
Description: Binary data
ThrowTestExceptionMatcher.java
Description: Binary data
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
