On Sat, Sep 16, 2006 at 07:58:39PM +0200, Jan Suchanek wrote:
>    condition = "${if match {$h_subject:}{^\*\*\*\*\*SPAM\*\*\*\*.*} {0}{1}}"
    [...]
> the condition in the router returns:
> 
> "failed to expand condition "${if match {$h_subject:}{^*****SPAM****.*} 
> {0}{1}}" for delspam router: regular expression error in 
> "^*****SPAM****.*": nothing to repeat at offset 1
> 
> What is wrong here?

you need to escape the *s in the subject:

    if match {$h_subject:}{^\*\*\*\*\*SPAM\*\*\*.*}{0}{1}}
but (a) that'd be better written as \*{5} or whatever; and
(b) why mess up the subject lines of the mails when you
could just use the other headers SA adds for this purpose?

-- 
``While you're waiting, read the free novel we sent you.
  It's a Spanish story about a guy named `Manual'.'' (from `Dilbert')

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

Reply via email to