Re: [exim] How to check the lookup as many times as possible…

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] How to check the lookup as many times as possible?
On 16/02/2020 14:31, Henry Pootel via Exim-users wrote:
> condition = ${if
> match{$h_subject:}{${lookup{$local_part@$domain}wildlsearch{/etc/exim/test.txt}}}}
>
>
> File test.txt with subject templates:
>
> user@domain: Hello
> user@domain: GoodLuck
> user@domain: blablabla
> user2@domain: qwerty
> ....
>
> Of course the exim take first matched template only with key
> "user@domain" - "Hello". Next pairs are ignored at all.


You could have a single line for each account, with a list of strings -
and then interpret the list using Exim's list-handling string
expansions.

Or you could used a real database rather than a file.
--
Cheers,
Jeremy