Re: [exim] conditin in content-filter

Inizio della pagina
Delete this message
Reply to this message
Autore: Dave Evans
Data:  
To: exim-users
Oggetto: Re: [exim] conditin in content-filter
On Thu, Mar 06, 2008 at 12:51:51PM +0100, Margrit Lottmann wrote:
> my attempt:
>
>   deny message = SPAM from internal hosts will be denied
>        condition = ${if ! eq {$sender_host_name} \
>        {\N^(.)*\.(.)*\.uni-magdeburg\.de$\N}{no} \
>        {${if match 
> {$h_Subject:}{\N^\*\*\*\*\*SPAM\*\*\*\*\*$\N}{yes}{no}}} \
>   }

>
> It shall deny connections from hosts with names
>     abc.xyz.uni-magdeburg.de
> if the subject headers has already *****SPAM*****


Firstly, why not just
    hosts = *.uni-magdeburg.de


Secondly, try a pattern more like:
    {\N^\s*\*{5}SPAM\*{5}\N}


This allows leading whitespace (i.e. between "Subject:" and "*****SPAM*****"),
and also allows something to come after "*****SPAM*****" (note that you've got
a "$" in your pattern).

--
Dave Evans
http://djce.org.uk/
http://djce.org.uk/pgpkey