Re: [Exim] Rewriting headers with transport_filter / content…

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Tore Anderson
CC: exim-users
Subject: Re: [Exim] Rewriting headers with transport_filter / contents of $header_*
On 31 Jan 2003, Tore Anderson wrote:

> I'm using a transport which in essence looks roughly like this:
>
>     local_delivery:
>       driver = pipe
>       transport_filter = /bin/modify-subject
>       command = /bin/save-to-disk
>       environment = <; SUBJECT=$h_subject:

>
> (Never mind the obvious security hole.)
>
> My problem is that $h_subject: is still the old subject as it was
> before the transport_filter was run. Is it possible to make Exim
> regenerate its $header_* variables based on the output from the
> transport_filter before setting the environment?


No, because the transport filter is run simultaneously with the actual
delivery that a transport does. It really is an "inline filter". All
expansion and setup is done previously.

Perhaps you need headers_add and headers_remove instead?

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.