Re: [Exim] router that only adds a header ?

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: Frank Elsner
CC: exim-users, Martin Tettke
Subject: Re: [Exim] router that only adds a header ?
On Fri, 26 Sep 2003, Frank Elsner wrote:

> I have this router:
>
> set_reply_to:
>   driver = redirect
>   condition = "${if eqi {$sender_address}{virus-check@???} \
>                     {yes}{no}}"
>   headers_remove = reply-to
>   headers_add = "Reply-To: Postmaster@???"
>   data = $local_part@$domain
>   no_verify

>
> But it doen't work as expected, the final messages contains 3 "Reply-To:".
> Obviously the old ones don't get removed.


headers_remove applies only to header lines in the original message, not
to those added en-route. The removal doesn't happen until final
delivery.

If you do it this way, you run the risk of passing through the router
several times, thus adding several header lines.

Not quite sure of the best way round this ... sorry ... rather busy
today.




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