Re: [exim] Moving Spam to own folder

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Chris Lightfoot
Fecha:  
A: Jan Suchanek
Cc: exim-users
Asunto: Re: [exim] Moving Spam to own folder
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')