they both look right to me

On 7/14/07, fat suze <[EMAIL PROTECTED]> wrote:
Two questions -- thank you very much for your help:

1) In my mailet, I'm not sure how to bounce/reject the message and
ensure no further processing is done.  I want the sender to get a
bounce back and James to then ignore the message.  Does this look
right?.

public void service(Mail mail) throws MessagingException void
service(Mail mail) throws MessagingException
{
  getMailetContext().bounce(mail, "I don't like your message");
  return;
}

2) If I'm done doing something with a message that I'm not rejecting
(let's say I just wanted to retrieve some information from the message
then behave as though it was accepted, but I don't want any other
mailets or James to deliver it anywhere) -- would this be right:

public void service(Mail mail) throws MessagingException void
service(Mail mail) throws MessagingException
{
 doWhateverIWantToDoWithThisMessage();
 mail.setState(Mail.GHOST);
}


Thanx!!

Reply via email to