[Dovecot] Sieve doesnt filter

Steffen Kaiser skdovecot at smail.inf.fh-bonn-rhein-sieg.de
Tue Mar 11 13:16:34 EET 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Mon, 10 Mar 2008, Sven Schmidt wrote:

> I have a config like this (globalsieverc):
> require "fileinto";
> if address :domain :is "to" "domain.de" {
>       if header :matches "X-Spam-Level" "\\*\\*\\*\\*\\*\\*\\*\\*" {
>               #discard;
>               fileinto "spamdir";
>       }
> }
> else {
> # The rest goes into INBOX
> # default is "implicit keep", we do it explicitly here
> keep;
> }

I guess, this is just a simplification of you real filter, therefore one 
remard:

keep is not reached, if address matches, but header not.

====

The regex does not look correct, use just one backslash per asterisk.

BTW: I would use

header :contains "X-Spam-Level" "*****"

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFH1moSVJMDrex4hCIRAuUzAJsGlUUts80v1TxtrGv69JCCUzDBBQCfQuQB
l4U+oTgWC7sVeeS1clUw+VM=
=GBDx
-----END PGP SIGNATURE-----


More information about the dovecot mailing list