There seems to be no Mail.CUSTOMERROR constant defined in the mailet.jar in James 2.0a2 Only available states are DEFAULT, ERROR, GHOST, TRANSPORT.
For my particular needs, going to the ERROR processor is not enough. I truly need to do some custom processing which also requires custom mailets/matchers I suppose I can define yet another constant and rebuild the source but I was hoping not to. I'd be glad to submit a mod that allows defining of custom states and processors in config.xml if folks feel its useful. ----- Original Message ----- From: "Danny Angus" <[EMAIL PROTECTED]> To: "James Users List" <[EMAIL PROTECTED]> Sent: Thursday, February 21, 2002 4:46 AM Subject: RE: programmatic bounce > > 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]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
