Re: [exim] Access to $value from lookups

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: Peter Velan
CC: exim-users
Sujet: Re: [exim] Access to $value from lookups
On Thu, 23 Jun 2005, Peter Velan wrote:
>
>   deny
>     message = Blacklisted address <$sender_address>
>     condition =
>     ${lookup \
>         {$sender_address} \
>       nwildlsearch{/xyz/file.txt} \
>       {yes}{no} \
>     }

>
> How does I get access to $value?


  deny
    set acl_m0 = ${lookup {$sender_address} nwildlsearch {/xyz/file.txt} }
    message = Blacklisted address <$sender_address>: $acl_m0
    condition = ${if eq{$acl_m0}{} {no} {yes} }


Tony.
--
<fanf@???> <dot@???> 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}}