Re: [exim] Condition

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Lena
日付:  
To: exim-users
題目: Re: [exim] Condition
> From: Konstantin <myownletters@???>

> condition = ${if or{\
> {${lookup{$local_part\@$domain}lsearch{/etc/exim/list1}{false}{true}}} \
> {${lookup{$local_part\@$domain}lsearch{/etc/exim/list2}{false}{true}}} } }


> Exim version is 4.82.


Clearly (наглядно):

condition = ${if or{\
{bool{${lookup{$local_part\@$domain}lsearch{/etc/exim/list1}{false}{true}}}}\
{bool{${lookup{$local_part\@$domain}lsearch{/etc/exim/list2}{false}{true}}}}\
             }}


However, you can use the logical law !a or !b = !(a and b)

!condition = ${lookup{$local_part\@$domain}lsearch{/etc/exim/list1}\
{${lookup{$local_part\@$domain}lsearch{/etc/exim/list2}{true}{false}}}\
{false}}