Re: [Exim] problem getting a condition right

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Nico Erfurth
日付:  
To: Odhiambo G. Washington, Exim-Users (E-mail)
題目: Re: [Exim] problem getting a condition right
Odhiambo G. Washington wrote:
> I am momentarily blind, and need help ;-)
> The following condition is getting me bald ...
>
> condition         = "${if and { \

                       ^ Remove this

>                       {!def:h_X-Spam-Flag:} \
>                       {!def:h_X-DSPAM-Check:} \
>                       {!eq {$received_protocol}{local}} \
>                       {!eq {$sender_address_domain}{$domain}} \
>                       ${lookup{$local_part@$domain}lsearch{/usr/local/etc/exim/mail_backup_users}}

                         ^^^^^^^^^^^^^^^ Whats this line meant to be?
Here you're still inside of the and block, where you can only use
subconditions.


>                       }
>                      {1}{0}


Maybe you wanted to do something like that:

${if and { \
             {!def:h_X-Spam-Flag:} \
             {!def:h_X-DSPAM-Check:} \
             {!eq {$received_protocol}{local}} \
             {!eq {$sender_address_domain}{$domain}} \
          } \
          {${lookup{$local_part@$domain} \
             lsearch{/usr/local/etc/exim/mail_backup_users} \
             {1}{0}} \
          {0} \
}


Nico