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

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Henry Pootel
Date:  
À: Jeremy Harris, exim-users
Sujet: Re: [exim] How to check the lookup as many times as possible?
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 ===