Re: [exim] regex

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Magnus Holmgren
Fecha:  
A: exim-users
Asunto: 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)