scratch what I said, Serge is the man. -----Original Message----- From: Lindsay Smith [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 07:30 To: James Developers List Subject: RE: newbie-question concerning relationship between matchers and mailets
I think that sentence "The matcher returns a collection ... " is a bit misleading. The matcher doesn't pass a List to the mailet. The matcher says "for this mail I am processing right now in this mailet as it falls through the mailet processing pipe line does it match this matcher?". Hence, why it returns a boolean. <mailet match="HostIsLocal" class="ToProcessor"> eg in the matcher/mailet if for the mail being processed, if the matcher HostIsLocal returns true, then do the ToProcessor mailet. There is nothing to stop you doing <mailet match="All" class="CustomMailet"> and then putting the filtering logic of whether tp process the mail in your CustomMailet. Cheers Lindsay -----Original Message----- From: Frank-Michael Bvhle [mailto:[EMAIL PROTECTED] Sent: 13 January 2004 07:22 To: [EMAIL PROTECTED] Subject: newbie-question concerning relationship between matchers and mailets Hi all, the last days I've browsed thru the 2.1.3-James and found it very useful, except for one issue: "The matcher returns a collection of recipients, which is a subset of all recipients". So far, so clear. I expected, that this list is passed in some way into the according mailet, but cannot find anything about that. Does it happen at all? If that list isn't available within the according mailet, why does matcher return it? Instead it could return a simple boolean for indicating "matches". I think, I've understood something wrong, cause nobody would create a "matching-recipients"-list, if it's of no use. Regards, Frank __________________________________________________________________ Gesendet von Yahoo! Mail - http://mail.yahoo.de Logos und Klingeltvne f|rs Handy bei http://sms.yahoo.de --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
