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
--
## 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/