Re: [exim] Condition

Inizio della pagina
Delete this message
Reply to this message
Autore: Lena
Data:  
To: exim-users
Oggetto: 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}}