james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Bagnara <apa...@bago.org>
Subject Re: Get the current recip
Date Thu, 02 Feb 2006 14:04:01 GMT
Norman Maurer wrote:
> Hi guys,
> im working on a mailet whicht use the domain of the recips as an option
> that is pass to a programm on the commandline. The Server is used as
> relay so it sppol the message for each recip .. right ?

No, each message will have multiple recipients: James split the message
only if a matcher return a partial match.

> So how can i get the current recip for which the message is spooled ?

There are multiple recipients.
Mail.getRecipients() give you the list.

If you have to run a command for each recipient then look to the
"LocalDelivery" or "RemoteDelivery" sources: in their service method
they both loop over the recipients and create multiple messages
(remotedelivery creates a new message for each recipient domain, local
delivery a different message for each recipient).


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

View raw message