Re: [Exim] Exim filter question.

Góra strony
Delete this message
Reply to this message
Autor: Sebastien J. Gross
Data:  
Dla: exim-users
Temat: Re: [Exim] Exim filter question.
Philip Hazel <ph10@???> writes:

> On 1 Oct 2002, Sebastien J. Gross wrote:
>
> > is there something like regexp- lookups that matches a string against
> > a regexp stored into a file / dbm or sql table?
>
> You can certainly look up a regex and use it in a "matches" test, e.g.
>
> if xxxx matches "${lookup....." ...
>
> but I'm guessing that that isn't actually what you want. There isn't a
> facility that provides "if this string matches any regex stored in this
> file". If you are getting that complicated, you probably need embedded
> Perl.


Yes, I think the best way is to use a perl code doing the stuff, but
actually I do not know how to access exim's dbm files in perl.

I tryed different kind of modules such as DB_File AnyDBM_File or
GDBM_File without any success.

Does someone have a small part of code?

TIA
--
Sebastien J. Gross