> if a
> certain condition
> occurs, I need to bounce the email back to the sender
> Is there a straightforward way to do so

mail.setState(Mail.CUSTOMERROR);


will send this mail to the CUSTOMERROR processor, which can have a mailet
configured to bounce the mail, for example ..

<spoolmanager>
......... sniped every preceding node for clarity ............
        <processor name="customerror">
          <mailet match="All" class="NotifySender">
          </mailet>
        </processor>
......... more nodes snipped ...............
</spoolmanager>

d.


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

Reply via email to