Re: [exim] conditional Subject: rewriting

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Magnus Holmgren
Dátum:  
Címzett: exim-users
Tárgy: Re: [exim] conditional Subject: rewriting
On Monday 06 August 2007 11:30, Nico Rittner wrote:
> i want to rewrite (prefix) the Subject: Header in
> a redirect router depending on if a certain
> header is set/exists or not :
>
> headers_remove = X-BeenHere: Subject:
> headers_add = "Subject: ${if
> def:header_X-BeenHere:{$h_subject:}{[${uc:$local_part}]
> $h_subject:\nX-BeenHere: $tod_full}}"
>
> [...] The debug output claims
> that 'def:header_X-BeenHere:' expands to 'false',
> although it is set definitely.


Is X-BeenHere: present in the incoming mail, or added by the ACLs or a system
filter? Otherwise $h_X-BeenHere: won't be set.

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)