Well, I remake test.txt to view
user@domain: Hello : GoodLuck : blablabla
user2@domain: qwerty
Yes? I don't know how check all of values.
So I need to make a loop with extract of string...
I've invented this configuration string:
condition = ${filter
{${lookup{$local_part@$domain}lsearch{/etc/exim/test.txt}}}
{match{$item}{$h_subject:}}}
Is it right way?
Thank you!!!
16.02.2020 16:58, Jeremy Harris via Exim-users пишет:
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.
--
=== Henry Pootel ===
--
## 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/