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

Attachment: signature.asc
Description: Digital signature

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to