On Thu, 9 Jul 1998, Philip Hazel wrote:
>
> Now *I'm* not sure I understand the requirement! I read Sean's comment
> to mean that he wanted to rewrite things (headers, envelope, whatever)
> only in the copy of a message that was sent to the particular recipient
> that had passed through a given director/router. Was this correct, Sean?
>
Maybe. I was thinking along the lines of defining rewrite rules
within a driver decleration thus if that driver is matches the
conditions and is used to "process" the mail futher it can be
used to alter the headers arround, add new ones etc. Useful
for conditional masqurading, pre-formating for pipes etc .
> I now see that perhaps I misunderstood him, and I have clearly
> misunderstood you! Is your requirement correctly stated thus:
>
> If an address is handled by a specific router or director, an option
> on that driver is able to request that rewriting take place on the
> addresses in the envelope and headers, exactly like the "global"
> rewriting rules. This rewriting will happen in the single copy of the
Not for me I need them to be different from the global rules and thus
NOT be visible to all recipients !
> headers, and therefore be visible to all recipients of the message.
>
> In effect this is a private set of rewriting rules that gets triggered
> by the success of the router or director.
>
> That is simpler, but unfortunately not much. The problem is that when a
> message is deferred, the headers are re-written to the spool file for
> use at the next delivery attempt, so all this rewriting would be
> recorded, and if you've rewritten envelope addresses, they will be
> different next time. Either there has to be some extremely careful
> documentation of the consequences of all of this, or this rewriting has
> to be done on a copy of the headers and envelope so that they don't get
> saved. This is now getting similar to the problem I saw before :-(
>
do the term fork and vfork come to mind ? It does look like at least
the cloneing of the envelope and the headers is required and even the
the rest of the body of message is not need I can see it be simpler to
clone the lot.
--Sean
--
*** Exim information can be found at
http://www.exim.org/ ***