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 Vincenzo Gianferrari Pini <vi...@praxis.it> on 2003/06/12 19:10:50 UTC

[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

RE: [no virus] [PATCH]On matcher/mailet exception handler

Posted by "Noel J. Bergman" <no...@devtech.com>.
> Thanks for all the patches!

Absolutely!  I hope to have time to wade through them soon.  Right now they
are all in my mailbox waiting for me to finish work on a server.

Vincenzo, to answer your question, yes I had the HD on my laptop fail
earlier this year.  This time it was a SCSI drive on a public server.  All
told, we've have four drive failures in the past 18 months.  From what the
drive recovery folks told me when I was talking to them about my laptop
drive, their business is way up.  Drives are not nearly as reliable as they
had been.  Density is up, speed is up, but so is the failure rate.
Fortunately, the new server has a six drive hot swappable RAID, and we've
already purchased a spare drive for the cage.

Its been an interesting week.  Yesterday we had a T-storm frell our cable
modem.

	--- Noel


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


Re: [no virus] [PATCH]On matcher/mailet exception handler

Posted by Serge Knystautas <se...@lokitech.com>.
Vincenzo Gianferrari Pini wrote:
> 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.

Thanks for all the patches!  I would say though, hopefully any day now 
so you'll have the account to commit these changes yourself, so you can 
cut your teeth on some of these. :)

-- 
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. sergek@lokitech.com


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