Here attached is the patch for v3.

Vincenzo

> -----Original Message-----
> From: Vincenzo Gianferrari Pini
> [mailto:[EMAIL PROTECTED]
> Sent: gioved� 12 giugno 2003 19.11
> To: List James-Dev
> Subject: [no virus] [PATCH]On matcher/mailet exception handler
> 
> 
> 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
> 

Attachment: onExceptionHandler_v3.patch
Description: Binary data

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to