Re: [Exim] filter from list of regex expressions

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Marc Perkel
Dátum:  
Címzett: Nico Erfurth
CC: exim-users
Tárgy: Re: [Exim] filter from list of regex expressions
Yes - looking good. I think it's going to work! Yes!

if "$h_from" matches "${readfile{/etc/exim/blockfrom}{|}}"
    then ....



Nico Erfurth wrote:

> Marc Perkel wrote:
>
>> Need a little syntax help. I want to write a filter where I test a
>> string
>> against a file that contains a lot of regular expressions and returns
>> true if
>> any match. Something like this:
>>
>> if "$h_from" matches /etc/exim/blockfrom
>> then
>>    do something
>> endif

>>
>> Where the /etc/exim/blockfrom file looks like this:
>>
> ....
>
>>
>> What is the systex to get this to work?
>
>
> AFAIK there is no way to do this yet :-/
> I have an experimental regexp-lookup, that you could try for this,
> look at http://mail.tmtowtdi.de/exim/
>
> something I could think of is
>
> if "$h_from" matches "${readfile{/etc/exim/blockfrom}{|}}" then ....
>
> as usual, this is untested, and just a guess.
>
> ciao
>
>