Re: [Exim] Help with condition statement needed (second try)

Pàgina inicial
Delete this message
Reply to this message
Autor: Kirill Miazine
Data:  
A: Jeffrey Wheat
CC: exim-users
Assumpte: Re: [Exim] Help with condition statement needed (second try)
Hello Jeffrey,

Formatting means a lot. The ability to split long lines is a brilliant
feature.

You have a pair of undeeded {} around the second eq{}{} and a missing }.

Here's something that *might* work.

condition = ${if and {\
        {eq {${lookup mysql{...}{$value}}}{y} }\
        {eq {$header_X-Spam-Flag:}{YES} }\
    } {1}{0}}


Jeffrey Wheat wrote:
> Hi. I am trying to get this to work but there is
> something wrong and it is driving me crazy trying
> to figure out why. This is exim version 4.20 on
> FreeBSD 4.8-STABLE. Can anyone offer a suggestion
> or solution? Here is the error I see in debugging:
>
> failed to expand condition "..." for spam_discard_director router:
> condition name expected, but found "{eq {$header_X-S"
> spam_discard_director router skipped: condition failure
>
>
> Many thanks,
> Jeffrey
>
> spam_discard_director:
> driver = accept
> no_verify
> condition = "${if and { {eq {${lookup mysql{select discard from accounts where username = '$local_part' and domain = '${domain}' and discard = 'y'}{$value}}}{y}} { {eq {$header_X-Spam-Flag:}{YES} } } {1}{0}}"
> transport = spam_discard_transport
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.492 / Virus Database: 291 - Release Date: 6/24/2003
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.492 / Virus Database: 291 - Release Date: 6/24/2003
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.492 / Virus Database: 291 - Release Date: 6/24/2003


Good to know that all of your mail is "certified Virus Free"... Telling
that only once would be enough though. ;)

--
Kirill Miazine
mailto:km@krot.org
http://km.krot.org/