[exim] Re: Fetch regexp for match from database

Góra strony
Delete this message
Reply to this message
Autor: Thomas Mueller
Data:  
Dla: exim-users
Temat: [exim] Re: Fetch regexp for match from database
Tony Finch wrote:
> On Thu, 9 Jun 2005, Thomas Mueller wrote:
>
>>condition = ${if match{$local_part}{{lookup pgsql{SELECT '[0-9]+'}}}{yes}{no}}
>
> You missed out the $ in ${lookup


Yes that's it, thanks.

The condition posted above works as expected now, but it doesn't work if
I add a where clause:
condition = ${if match{$local_part}{${lookup pgsql{SELECT '([0-9]+)' \
      WHERE '${quote_pgsql:$domain}' = 'tmueller.com'}}}{yes}{no}}


This matches always, even something like example@???.
match{$local_part}{} seems to be true?


Thomas