On Wed, 14 Jun 2006, Matt Judge wrote:
>
>  >>> processing "accept"
>  >>> check condition = ${if eq{${lookup mysql{SELECT 1 FROM domain_whitelist 
> WHERE INSTR('[EMAIL PROTECTED]', 'google')}}}{1} {1}{0}}
>  >>>                 = 0
>  >>> accept: condition test failed

${lookup has ${if functionality built in, so try simply

condition = ${lookup mysql{SELECT 1 FROM domain_whitelist WHERE INSTR('[EMAIL 
PROTECTED]', 'google')} }

(You might be having problems with extra whitespace, maybe. Try running
with -d+all-memory.)

Tony.
-- 
<[EMAIL PROTECTED]>   <[EMAIL PROTECTED]>   http://dotat.at/   ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}

-- 
## List details at http://www.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://www.exim.org/eximwiki/

Reply via email to