Re: [exim] regex

Pàgina inicial
Delete this message
Reply to this message
Autor: Alex
Data:  
A: Magnus Holmgren
CC: exim-users
Assumpte: Re: [exim] regex
I put this

condition = ${if match{$h_Subject:}{${lookup
sqlite{/home/sqlite/sqliteDb/mail.db select blockval from blocklists where
blocklists.blockhdr = 'subject' and user_id IS NULL and domain_id IS NULL}}}

and i have this error

2006-11-25 17:32:58 1Go0SY-0004Xh-Ni H=(caya) [192.168.1.3] F=<
alex@???> temporarily rejected after DATA: failed to expand ACL
string "${if match{$h_Subject:}{${lookup
sqlite{/home/sqlite/sqliteDb/mail.db select blockval from blocklists where
blocklists.blockhdr = 'subject' and user_id IS NULL and domain_id IS
NULL}}}": missing or misplaced { or }


2006/11/25, Magnus Holmgren <holmgren@???>:
>
> On Saturday 25 November 2006 12:42, Alex wrote:
> > It's possible do something like this?
> >
> > deny message = This message matches a blacklisted regular expression
> > ($regex_match_string)
> > regex = ${lookup sqlite{/home/sqliteDb/mail.db select blockval from
> > blocklists where blocklists.blockhdr = 'subject' and user_id IS NULL and
> > domain_id IS NULL}}
>
> Well, your query contains no variables so I can't see how it wouldn't
> work,
> but if you wanted to check the contents of the Subject header field you
> would
> instead say
>
> condition = ${if match{$h_Subject:}{${lookup sqlite{...}}}
>
> --
> Magnus Holmgren        holmgren@???
>                        (No Cc of list mail needed, thanks)

>
>
> --
> ## 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/
>
>
>