james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Brewin" <sbre...@synsys.com>
Subject RE: newbie-question concerning relationship between matchers and mailets
Date Wed, 14 Jan 2004 10:11:41 GMT

> From: Frank-Michael Böhle wrote:


> Where is my mistake?

org.apache.james.transport.LinearProcessor.service() invokes a Mailet with a
List of the recipients returned by the Matcher, that is all MATCHED

If a recipient is not returned by the Matcher it will not be in the List
passed to the Mailet.

If no recipients are returned by the Matcher, the Mailet is not invoked at
all. It is moved to the next stage in the evaluation

If there is a mix of matched and unmatched recipients, the Mail is cloned.
The original Mail is given the List of MATCHED recipients and the Mailet
invoked. The cloned Mail is given a List of UNMATCHED recipients and moved
to the next stage in the evaluation.

For the purpose of writing Mailets it is simply safe to assume that it is
invoked because the Matcher answered a non-empty List of recpients and that
the recipients answered by Mail.getRecipients() is that List.

-- Steve

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

View raw message