You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-dev@james.apache.org by Evert Tigchelaar <e....@minihouse.com> on 2006/09/11 17:11:09 UTC
sending a delay dsn mail
Hi I am working to implement support for delay DSN
and I am looking a bit around in the code and found in the run method
of org.apache.james.transport.mailets.RemoteDelivery the following code:
if(deliver(mail, session)) {
//Message was successfully delivered/fully failed... delete it
outgoing.remove(key);
} else {
//Something happened that will delay delivery. Store any updates
outgoing.store(mail);
}
the else block looks like a a good position to fire a delay DSN mail, is
this correct? And are there other places were a delay DSN mail should be
sended?
Thanks,
Evert
p.s.
How does a delay DSN mail looks like, simular like a success and failure
DSN mail like in http://www.rfc-archive.org/getrfc.php?rfc=1891 ?
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org
Re: sending a delay dsn mail
Posted by Stefano Bagnara <ap...@bago.org>.
Evert Tigchelaar wrote:
> Hi I am working to implement support for delay DSN
> and I am looking a bit around in the code and found in the run method
> of org.apache.james.transport.mailets.RemoteDelivery the following code:
>
> if(deliver(mail, session)) {
> //Message was successfully delivered/fully failed... delete it
> outgoing.remove(key);
> } else {
> //Something happened that will delay delivery. Store any updates
> outgoing.store(mail);
> }
>
> the else block looks like a a good position to fire a delay DSN mail, is
> this correct? And are there other places were a delay DSN mail should be
> sended?
Hi Evert,
Yes, imho that is the right place.
Stefano
---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org