Re: [exim] regex

Top Page
Delete this message
Reply to this message
Author: Magnus Holmgren
Date:  
To: exim-users
Subject: Re: [exim] regex
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)