Re: [exim] headers_add

Página Principal
Apagar esta mensagem
Responder a esta mensagem
Autor: Jeremy Harris
Data:  
CC: exim-users
Assunto: Re: [exim] headers_add
Tony Finch wrote:
> On Thu, 23 Dec 2004, jesk wrote:
>
>>The problem is that when inserting it into one of my routers that the
>>X-Envelope-To line will only be created when a router matchs,
>>so i have to insert it into every router.
>
>
> I can't think of a good way around this, because you presumably want the
> header to be per-recipient but if you add the header in the ACL it's per
> message, so you'll get a header for each recipient which is presumably not
> what you want.


How about a dummy router near the top?

dummy_munge:
driver = redirect
headers_add = "X-Envelope-To: $local_part@$domain"
data = $local_part@$domain

- Jeremy