Alberto Ochoa wrote:
> 
> Hello,
> 
> Does JAMES or AVALON allow for the creation of
> servelets to modify the mail message headers or body and then allow the
> message to continue to other servelets?
> 
> Thank you
> Alberto Ochoa
> 

Yes. This is the default behaviour.

In the LinearProcessor after each mailet service, if the mail is not set
to setState(Mail.ERROR) or Mail.GHOST it is passed to the following
mailet. And the service method ca do whatever it wants.

Setting a Mail to Mail.ERROR means something bad happend in the service
and the mailet is not able to manage the error. 
Setting Mail to Mail.GHOST means the mail has been completly processed
and nothing more is needed (like it has been delivered).

The only thing wrong to do is adding recipient... a new recipient means
a new mail and should be sent to the beginning of the pipe line. That's
why the Forward mailet send the mail to transport instead of letting it
continue in the pipe processing. 

Fede


------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/>
Problems?:           [EMAIL PROTECTED]

Reply via email to