Re: [Exim] Weird problem getting header match in router

Top Page
Delete this message
Reply to this message
Author: David Saez
Date:  
To: Avleen Vig
CC: exim-users
Subject: Re: [Exim] Weird problem getting header match in router
Hi !!

> This works and the conditions succeeds:
> condition = ${if match {$h_x-mailer:}{mPOP Web-Mail 2.19} {yes}{no} }
>
> This doesn't:
>   condition = ${if eq {$h_X-Mailer:}{${lookup mysql{select blocklists.blockval from blocklists,users,domains \
>               where users.localpart = '${quote_mysql:$local_part}' \
>               and domains.domain = '${quote_mysql:$domain}' \
>               and domains.domain_id=blocklists.domain_id \
>               and users.user_id=blocklists.user_id}{$value}fail} } {yes}{no}}


condition must be true or false, 0 or 1, better try to to something like
SELECT COUNT(*) ...

--
Best regards ...

SPECIMEN: An Italian astronaut.

----------------------------------------------------------------
   David Saez Padros                http://www.ols.es
   On-Line Services 2000 S.L.       e-mail  david@???
   Pintor Vayreda 1                 telf    +34 902 50 29 75
   08184 Palau-Solita i Plegamans   movil   +34 670 35 27 53
----------------------------------------------------------------