Re: [Exim] net-lsearch not available in expansion lookups?

Pàgina inicial
Delete this message
Reply to this message
Autor: Andreas Steinmetz
Data:  
A: exim-users
Assumpte: Re: [Exim] net-lsearch not available in expansion lookups?
Tore Anderson wrote:
> Well, the key I'm looking up with is explicit, what I'm looking for is
> not. To clarify:
>
>     $ echo 1.2.3.0/24 > /tmp/foo
>     $ exim -be '${lookup {1.2.3.4} lsearch {/tmp/foo}  {found}{not found}}'
>     not found

>

Why don't you just do something like:

${lookup{${mask:$sender_host_address/24}}lsearch*{/path/to/file}}

--
Andreas Steinmetz                       SPAMmers use robotrap@???