[Dovecot] sieve :regex problem
Hello, I have dovecot 1.1.1 with dovecot-sieve-1.1.5 and managesieve 0.10.3. Everything is working, with exeption of this filter:
if header :comparator "i;ascii-casemap" :regex "X-Spam-Score" ".*\+\+\+\+" { fileinto "Spamq"; stop; }
Which I think should match only messages with ++++ somewhere in their X-Spam-Score header - but matches everything (this is filter generated by ingo fom horde.org framework). Can someone please tell me where the problem really is?
Ax
Václav Hůla, správce linuxových serverů Přírodovědecká fakulta Univerzita Karlova v Praze
Václav Hùla wrote:
I have dovecot 1.1.1 with dovecot-sieve-1.1.5 and managesieve 0.10.3. Everything is working, with exeption of this filter:
if header :comparator "i;ascii-casemap" :regex "X-Spam-Score" ".*\+\+\+\+" { fileinto "Spamq"; stop; }
I think that you need more escaping: ".*\\+\\+\\+\\+"
I would also think that the X-Spam-Score header would contain a number, but that is just me ...
Cheers, Anders.
participants (2)
-
Anders
-
Václav Hůla