[Exim] Loops in filters

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Petri Laatunen
Data:  
Para: exim-users
Asunto: [Exim] Loops in filters
Hello,

Can someone recommend a good way to implement the following in exim
filters:

    for regex in 'regex1' 'regex2' ...
    do
        if ($message_body matches "$regex")
        then
            fail "Some text..."
            seen finish
        endif
    done


The idea is to avoid writing tons of if-statements to test each regex
separately.

        Thanks in advance,


            Petri


--------------------------------------------------------------------------
Mr. Petri Laatunen                      Ohjelmoija / Computer programmer
Celia - Näkövammaisten kirjasto         Work phone: +358-9-229 52 224
Mäkelänkatu 58-60                       E-mail: petri.laatunen@???
00510 Helsinki                                  (postmaster@???)
FINLAND                                    Web: http://www.celialib.fi/
==========================================================================