Re: [Exim] filter from list of regex expressions

Góra strony
Delete this message
Reply to this message
Autor: Marc Perkel
Data:  
Dla: Nico Erfurth
CC: exim-users
Temat: Re: [Exim] filter from list of regex expressions
Interestingly enough this works:

  deny    senders = /etc/exim/blockfrom


But - I want to do that in a filter rather than an acl so I can capture
the spam and forward it to the Razor database. The logic is in there - I
just need to do it from a filter.

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
>
>
> --
>
> ## List details at http://www.exim.org/mailman/listinfo/exim-users
> Exim details at http://www.exim.org/ ##
>
>