Re: [exim-dev] Exim 4.61-RC1 available

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Philip Hazel
Datum:  
To: Andreas Metzler
CC: exim-dev
Betreff: Re: [exim-dev] Exim 4.61-RC1 available
On Sat, 25 Mar 2006, Andreas Metzler wrote:

> How does
>
> warn somecondition
>      add_header X-added: foo

>
> work if the incoming mail already contained a X-added: header. Do I
> end up with two X-added: headers or is the old externally added
> header replaced with the new one?


You end up with two headers, just as you would do if you used the old
mechanism via the "message" modifier. There is no mechanism for deleting
header lines in ACLs. To do what you are implying, I would use

  warn somecondition
       set acl_m0 = foo


and then in your system filter

  headers remove "X-added"
  if "$acl_m0" is not "" then
    headers add "X-added: $acl_m0"
  endif


or something like that.

-- 
Philip Hazel            University of Cambridge Computing Service
Get the Exim 4 book:    http://www.uit.co.uk/exim-book