You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by zkn <zk...@abv.bg> on 2007/12/26 15:08:00 UTC

Adding real recipient header to the message

Hi,

we have a server where all incoming emails despite the recipient are  
saved in a single folder. To get the real recipient of an email we  
parse the Received headers of the message but in rare cases the  
recipient's address is not there.
We already have a mailet that adds a custom header to the message  
with the address of the real recipient but I wondered can this be  
achieved by only using the bundled the mailets.

Thanks,
Ozkan

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Adding real recipient header to the message

Posted by Stefano Bagnara <ap...@bago.org>.
zkn ha scritto:
> Hi,
> 
> we have a server where all incoming emails despite the recipient are
> saved in a single folder. To get the real recipient of an email we parse
> the Received headers of the message but in rare cases the recipient's
> address is not there.
> We already have a mailet that adds a custom header to the message with
> the address of the real recipient but I wondered can this be achieved by
> only using the bundled the mailets.
> 
> Thanks,
> Ozkan

No, you can't do this using only bundled mailets.

Look at the LocalDelivery code and how it writes the "Delivered-To"
message. You may want to write a LocalDelivery that write the original
delivered-to and then place the message in a single inbox.

Stefano


---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org