On Mon, 19 Nov 2001, Shal Jain wrote:
> Can a custom mailet derived from GenericMailet, programmatically control -
> (on a per Mail obj basis) whether it should
> be passed through to the next mailet/processor or not. i.e. ignore the value
> of <passThrough> if necessary

Yes, all you need is to set the mail's state.
public void service(Mail mail) {
  // your code
  // eg: getMailetContext().sendMail(sender, recipients, message);
  if (!<send to next mailet>)
    mail.setState(Mail.GHOST);
}

Oki




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

Reply via email to