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

Top Page
Delete this message
Reply to this message
Author: Tore Anderson
Date:  
To: exim-users
Subject: [Exim] Re: net-lsearch not available in expansion lookups?
* Philip Hazel <ph10@???> writes:

* Tore Anderson

> Another nice thing - unless it's too much trouble - would be if the
> search could be applied directly to a host list instead of just a
> file. Then you'd have maximum flexibility.


* Philip Hazel

> Don't understand.


I mean during expansion. For instance:

    hostlist blah = 127.0.0.1 : 1.0.0.0/8 : /etc/bleh


    some_expanded_var = ${lookup {4.3.2.1} iplsearch {+blah} {yes}{no}}


in addition to having

    some_other_expanded_var = ${lookup {1.2.3.4} iplsearch {/etc/bleh}}


But, having only one of the above is much better than having neither,
of course. :-) Actually, searching in host lists is more interesting
than searching in files, because if one needs to search a file, one can
just make a host list containing only the file inlined, and then search
the host list instead.

--
Tore Anderson