What you need to keep in mind is that there are two sets of addresses: the
one in the mail container, which is used internally, and the one in the
message headers.

Take a look at the existing mailets to see how do affect changes.  For
example, Forward and Redirect do it one way, whereas PostmasterAlias does it
another.

Forward sends a copy of the mail to the new address, keeping the headers
intact.  Redirect sends a copy to the new address, potentially changing the
headers.  PostmasterAlias, which is implicit at the top of the root
processor, simply changes the internal address, leaving the existing message
intact.

For what it is worth, have you considered subclassing the Redirect mailet?
That is what it is there for.

        --- Noel


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to