Re: [exim] Conditionally skip filtering

Etusivu
Poista viesti
Vastaa
Lähettäjä: Magnus Holmgren
Päiväys:  
Vastaanottaja: exim-users
Vanhat otsikot: [exim] Conditionally skip filtering
Aihe: Re: [exim] Conditionally skip filtering
On tisdagen den 20 januari 2009, useatownrisk@??? wrote:
> I have some trouble configuring exim to not filter incoming messages
> given a flag in a database is set. I have tried using the following
> configuration:
>
> QUERY_FILTER    = ${lookup mysql{SELECT filter FROM mail WHERE \
>                   local_part="${quote_mysql:$local_part}" AND domain= \
>                   "${quote_mysql:$domain}"}}

>
> [...]
>
> acl_check_data:
>
>   deny  message = Spam detected.
>   spam = spamd:true/defer_ok
>   condition = ${if and { \
>                          {<{$message_size}{128K}} \
>                          {>{$spam_score_int}{64}} \
>                          {eq{'1'}{QUERY_FILTER}} \
>                        } \
>                {1}{0}}


Erm, the query will return "0" or "1", not "'1'".

-- 
Magnus Holmgren        holmgren@???
                       (No Cc of list mail needed, thanks)