Re: [exim] Condition

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Lena
Date:  
À: exim-users
Sujet: 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}}