Re: [exim] Issues with headers_remove in router ::

Pàgina inicial
Delete this message
Reply to this message
Autor: Jeremy Harris
Data:  
A: exim-users
Assumpte: Re: [exim] Issues with headers_remove in router ::
On 05/09/14 12:10, Shamim Shahriar wrote:
> Hello Jeremy
>
> Thank you for your reply. I tried that, and below is the modified
> headers_remove section
>
>   headers_remove = ${if or { { <{$spam_score_int}{1} } \
>         { <{$spam_score_int}{${lookup mysql{select users.sa_tag * 10 from
> users,domains \
>         where localpart = '${quote_mysql::$local_part}' \
>         and domain = '${quote_mysql::$domain}' \
>         and users.on_spamassassin = 1 \
>         and users.domain_id=domains.domain_id}{$value}fail}} } \
>         { eq {0}{${lookup mysql{select users.sa_tag * 10 from users,domains
> \
>         where localpart = '${quote_mysql::$local_part}' \
>         and domain = '${quote_mysql::$domain}' \
>         and users.on_spamassassin = 0 \
>         and users.domain_id=domains.domain_id}{$value}fail}}} \
>         } {X-Spam-Score::X-Spam-Report} }


If I'm counting brackets right, you have

 {if
   or {    { cond1 }
           { cond2 }
           { cond3 }


                              <<<<<<<<<< MISSING


{ if-result }

}

--
Cheers,
Jeremy