Brian J. Sayatovic wrote:
Well, I'd like to say I understood that, but I'm not sure I did.

So given an e-mail addressed to [EMAIL PROTECTED] and [EMAIL PROTECTED], I want my
Matcher-or-Mailet to make sure it gets (locally) delivered to [EMAIL PROTECTED] and
[EMAIL PROTECTED] instead.  I get the impression I should be using the "All" matcher
from another responder to this thread.

If that's the case, thenw hat should my Matcher do?

1. Modify the recipients to replace [EMAIL PROTECTED] with [EMAIL PROTECTED] ?
2. MailetContext.send() the Mail to [EMAIL PROTECTED]
3. Something else?

I hate to say it, but I think I need a flow chart and Venn diagrams to
understand this.

Brian,


I didn't think this was that hard, but can see how your example is confusing you. The intention was to have Matcher be a read-only dissection of the recipient list, and Mailets perform any changes.

To do what you want with the intention, you could have this:

Step A
- Matcher A returns [EMAIL PROTECTED]
- Mailet A squashes the matching recipient addresses to [EMAIL PROTECTED] and [EMAIL PROTECTED]


Step B
- Matcher B returns [EMAIL PROTECTED] or [EMAIL PROTECTED]
- Mailet B does whatever processing you want.

OR

Step A
- Matcher A returns [EMAIL PROTECTED]
- Mailet A does whatever processing you want.

I included the first alternative since it seems you wanted to squash the address names first, although I'm not sure why.

--
Serge Knystautas
President
Lokitech >> software . strategy . design >> http://www.lokitech.com
p. 301.656.5501
e. [EMAIL PROTECTED]


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



Reply via email to