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