Re: [exim] Access to $value from lookups

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Tony Finch
Fecha:  
A: Peter Velan
Cc: exim-users
Asunto: 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}}