RE: [Exim] condition issues / amavis & mysql

Pàgina inicial
Delete this message
Reply to this message
Autor: Yves Thommes
Data:  
A: exim-users
Assumpte: RE: [Exim] condition issues / amavis & mysql
It works! Thanks a lot.

I just had to add an !eq before the scanned-ok condition.


Yves

-----Original Message-----
From: exim-users-admin@??? [mailto:exim-users-admin@exim.org] On
Behalf Of Kirill Miazine
Sent: Thursday, July 17, 2003 11:26 AM
To: Yves Thommes
Cc: exim-users@???
Subject: Re: [Exim] condition issues / amavis & mysql

Kirill Miazine wrote:
> A condition that might work (I haven't tested it):
>
>     condition = ${if and {\
>         {eq\
>             {$received_protocol}\
>             {scanned-ok}}\
>         {eq\
>             {${lookup mysql{SELECT checkvirus FROM users \
>                             WHERE checkvirus='yes' AND

username='$local_part' \
>                             AND domain='$domain'}}}\
>             {yes}}

                    ^^^^


Duh. A backslash forgotten at the end.

>         }{yes}{no}}


--
Kirill Miazine, Stud.Jur.
Faculty of Law, University of Oslo


--

## List details at http://www.exim.org/mailman/listinfo/exim-users Exim
details at http://www.exim.org/ ##