Re: [Exim] if statement

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Philip Hazel
Dátum:  
Címzett: wt
CC: exim-users
Tárgy: Re: [Exim] if statement
On Thu, 30 Mar 2000 wt@??? wrote:

> Is it possible to nest the "AND" / "OR" conditions within each other? The
> FAQ doesn't say anything about it and the documentation doesn't say it can
> or can't be done. I'm currently using exim from debian slink (2.05-1)


It can be done. You just need LOTS of {} ;-)

> ${if or {{eq {$local_part}{some name}}
>          {and {match {$h_X-ThisHeader:}{something}}
>               {match {$h_X-ThatHeader:}{something else}}
>          }
>         }
>   {true} {false}
>  }


You are missing extra {} after the "and". The syntax of "or" and "and"
is

   or {  {c1}{c2} ... }
  and {  {c1}{c2} ... }
      ^               ^
      ^               ^
You've missed out these ones.       




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