Re: [Exim] condition

Góra strony
Delete this message
Reply to this message
Autor: David Sheryn
Data:  
Dla: Funk Gabor
CC: exim-users
Temat: Re: [Exim] condition
On Mon, 18 Feb 2002, Funk Gabor wrote:

> Subject: [Exim] condition
>
> I'm trying to create a condition, where message is not scanned for virus if:
> - received_protocol is scanned-ok
> OR
> - header_from=test@??? AND server_ident=www-data AND
> received_protocol=local
>
> I created the following condition (formatted for easier reading)


That may be the clue - be very careful about accidentally including
whitespace in parts of conditions where you didn't intend it and where it
will affect the evaluation. This usually happens, inadvertantly, precisely
when you go to format the condition out like this in an attempt to make it
easier to read. I've been caught out myself like that... :-(

> but it scans
> always (except when scanned-ok I guess). Can someone point out why
> it is wrong? I couldn't find such a "sophisticated"(?) example condition on
> the web.
>
>
> condition = "
> ${if
>     or  {
>            {eq{$received_protocol}{scanned-ok}}
>              {and
>                     {
>                       {eq{$header_from}{test@???}}
>                       {eq{$sender_ident}{www-data}}
>                       {eq{$received_protocol}{local}}
>                     }
>               }
>           }          {0}{1}
>     }"

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



DHS
--
D.H.Sheryn@???        City University Computing Services