Re: [exim] Exim lsearch lookup in multiple files at the same…

Góra strony
Delete this message
Reply to this message
Autor: Jasen Betts
Data:  
Dla: exim-users
Temat: Re: [exim] Exim lsearch lookup in multiple files at the same time
On 2017-04-18, Jeremy Harris <jgh@???> 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