On Sat, 9 Aug 2008, Pawel Rutkowski wrote:

>         Anyone know why this condition:
>
> condition = ${if and {\
>         {eq
> {${lookup{$sender_address_domain}lsearch{/etc/exim/ze_skrzynkami}{0}{1}}}{1}{0}{1}}\
>         {eq
> {${lookup{$sender_address_domain}lsearch{/etc/exim/ze_skrzynkami}{0}{1}}}{1}{0}{1}}\
>         }{1}{0}}
>
> give this error:
> "missing } at end of condition inside "and" group"

Better formatting is the answer to questions like this.

 condition = \
   ${if and{{ eq{${lookup {$sender_address_domain} \
                   lsearch {/etc/exim/ze_skrzynkami} \
                   {0} {1} }} \
                {1} \
# here you have {0}{1} which makes no sense
# since eq{}{} takes only two parameters
           }{ eq{${lookup {$sender_address_domain} \
                   lsearch {/etc/exim/ze_skrzynkami} \
                   {0} {1} }} \
                {1} \
# here you have another spurious {0}{1}
           }} \
        {1} {0} }

You're testing the same lookup twice, so this is equivalent to:

  ${lookup {$sender_address_domain} \
    lsearch {/etc/exim/ze_skrzynkami} \
     {0} {1} }

Tony.
-- 
<[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to