> The original email is intact with the original recipient list.
Then you, apparently, have not made the call to set the new recipient list,
which you should see in the code to which I refered.
> What I'm trying to do is the following:
> 1. Email Arrives with To: field addressed to joe at
jamesserver.domain.com
> 2. Funnel that email into a custom mailet using the HasHeader mailet.
> 3. Look up Joe's forwarding address in the database using the Avalon
> ComponentManager.
> 4. Change the To: field in the original email from joe at
> jamesserver.domain.com to the forwarding address in the database.
> 5. Let James process the email.
For RCPT TO:, which is what defines recipients, the JDBCVirtualUserTable
would do what you describe above for you in an external database. The
LocalDelivery mailet would do what you describe for forwarding addresses in
the UserRepository. If you really mean to change the recipient list from
what is provided by RCPT TO: what is included in the To: header (which is
not supposed to be used for routing), then you would need to modify the
recipient collection based upon the header.
--- Noel
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]