On 2017-04-18, Jeremy Harris <[email protected]> wrote:
> On 18/04/17 19:36, Rustam via Exim-users wrote:
>> So my proposal is to allow a* list of files* as an argument to lsearch. Of
>> if there is an easier solution, I'm open to suggestions.
>
> Wrap the lookup in one of the list-handling expansion items -
> reduce or map, probably.   The problem will be handling your
> early-out need, not always doing the full set of lookups.
>
> Or do it properly and move to using a database.


early-exit can be faked using if I think

 
${reduce{list:of:files}{}{${if!eq{$value}{}{$value}{${lookup{$what_ever}lsearch{$item}}}}}

or something like that.


-- 
This email has not been checked by half-arsed antivirus software 

-- 
## List details at https://lists.exim.org/mailman/listinfo/exim-users
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to