Re: [exim] Express list in reduce?

Etusivu
Poista viesti
Vastaa
Lähettäjä: Felipe Gasper
Päiväys:  
Vastaanottaja: Jeremy Harris
Kopio: exim-users
Aihe: Re: [exim] Express list in reduce?


> On Apr 5, 2021, at 11:44 AM, Jeremy Harris via Exim-users <exim-users@???> wrote:
>
> On 05/04/2021 16:34, Felipe Gasper via Exim-users wrote:
>> domainlist manualmx_domains = ${if exists {/etc/manualmx} {lsearch;/etc/manualmx} {} }
>
> That's not a valid definition for a named list.
>
> I suspect you've misread "lists are (string-) expanded before use" as meaning
> that list *definitions* can have string-expansions. Not so. The string-expansion
> is done on the text that should be a list, when some text is arrived at in the
> context of a list being needed.


Hrm. It … works for us? Is this something that happens to work but is undocumented?

The router that uses that list, at least, seems to work as we intend:

manualmx:
driver = manualroute
domains = +manualmx_domains
transport = remote_smtp
route_data = ${lookup{$domain}lsearch{/etc/manualmx}}

Or am I misunderstanding?

-F