Re: [Exim] Condition line in a director

Pàgina inicial
Delete this message
Reply to this message
Autor: Philip Hazel
Data:  
A: John Henders
CC: exim-users
Assumpte: Re: [Exim] Condition line in a director
On 11 Dec 2001, John Henders wrote:

> condition = "${if def:header_subject:{yes}{no}}"
>
> the test passes and the director is taken.
>
> However if I then try to actually test on the subject header with the
> following
>
> condition = "${if eq{$header_subject:}{test}{yes}{no}}"


That should work. However, the contents of the header are likely to be
"test\n", so maybe that's the problem. Have you tried

${if match{$header_subject:}{test}{yes}{no}}

?


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