Re: [exim] condtion problem with nested and conditions

Top Page
Delete this message
Reply to this message
Author: Marc Sherman
Date:  
To: exim-users
Subject: Re: [exim] condtion problem with nested and conditions
Jakob Hirsch wrote:
>
>
> 1. there is no need to nest multiple "and" conditions


You missed a subtlety in the OPs condition -- the inner and has
{no}{yes}, implying that he acutally intended a nand between those two
conditions, not an and. So:

condition = ${if and \
               { \
                 { eq {$local_part}{test} } \
                 { !eq {$interface_port}{2525} } \
                 { !and \
                   { \
                     { eq {$sender_host_name}{myhost.foobar.de} }\
                     { match {$header_content-type:}{\N^text/plain.*\N}}\
                   } \
                 } \
               }{yes}{no} \
             }


should work for you. If that still fails (which would be a genuine exim
bug), try replacing !and{{eq...}{match...}} with or{{!eq...}{!match...}}.

- Marc