Re: [Exim] if statement

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Philip Hazel
Fecha:  
A: wt
Cc: exim-users
Asunto: 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.