Re: [Exim] Condition line in a director

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Philip Hazel
日付:  
To: John Henders
CC: exim-users
題目: 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.