Re: [Exim] vacation condition broken

Top Page
Delete this message
Reply to this message
Author: Fred Viles
Date:  
To: exim-users
Subject: Re: [Exim] vacation condition broken
On 13 May 2004 at 11:52, Moses Moore wrote about
    "[Exim] vacation condition broken":


|...
|   condition = " \
|     ${if or { \
|               { eq {$sender_address}{} } \
|               { def:header_x-spam-flag: } \
|               { !match {$header_to:}{(?i)$local_part} } \
|               { match {$h_precedence:}{(?i)junk|bulk|list} } \
|             }{no}{yes} \
|      } "


Lose the quotes. The condition option fails only if the string
expansion fails, or results in '', '0', 'false', or 'no'. Your use
of quotes causes leading and trailing space characters to be included
(you are producing ' no ' or ' yes '), so the condition always
succeeds.

- Fred