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 11:10:43 GMT
Frank-Michael Böhle wrote:
>  --- Steve Brewin <sbrewin@synsys.com> schrieb: >
> > org.apache.james.transport.LinearProcessor.service()
> > invokes a Mailet with a
> > List of the recipients returned by the Matcher, that
> > is all MATCHED
> > recipients.
> >
> No! It invokes the Mailet with a Parameter of type
> Mail.

The recipients list is an attribute of the Mail. To be absolutely accurate,
org.apache.Mailet requires it to be a java.util.Collection.

> > 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.
> >
> > -- Steve
> >
> Now the fog seems to disappear. That means, that the
> recipient list might be modified by James before
> invoking a mailet? Within the mailet, if I pull the
> recipient list from the Mail-parameter, I will only
> see the matching recipients?
 Correct.

-- Steve


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


Mime
View raw message