Re: [exim] Why isn't this filter condition matching?

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Marc Sherman
Date:  
À: exim-users
CC: Ross Boylan
Sujet: Re: [exim] Why isn't this filter condition matching?
Ross Boylan wrote:
> My .forward file begins
>
> # Exim filter
> if error_message then
>     save $home/mail/general
> elif $h_X-Spam_bar: begins "++++++++" or h_X-Spam-Level: begins "********" then
>     save $home/mail/spamhi
> elif $h_X-Spam_bar: begins "++++" or h_X-Spam-Level: begins "****" then
>     save $home/mail/spamlo
> elif personal then
> ......

[snip]
> I think the argument to begins is not a regular expression, but I'm
> obviously missing something. I also think the presence of a named
> sender means the error_message should not match. Why doesn't the
> h_X-Spam-Level: begins "****" condition match? How do I fix it?


You're missing the $ on the $h_X-Spam-Level: arguments.

- Marc