spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Luca Bertoncello <lucab...@lucabert.de>
Subject Re: Writing rules to parse Kaspersky-headers
Date Tue, 26 Sep 2017 12:53:31 GMT
Zitat von Matus UHLAR - fantomas <uhlar@fantomas.sk>:

> at first I'd recommend avoid those {1} and skip useless ()
> at second, 1030, 3060, and 6090 should be named 1029, 3059 and 6089
>
> header	KLMSSPAM_0X	X-KLMS-AntiSpam-Rate =~ /^[0-9]$/
> header	KLMSSPAM_1030	X-KLMS-AntiSpam-Rate =~ /^[012][0-9]$/
> header	KLMSSPAM_3060	X-KLMS-AntiSpam-Rate =~ /^[345][0-9]$/
> header	KLMSSPAM_6090	X-KLMS-AntiSpam-Rate =~ /^[678][0-9]$/
>
> at third, the last rule should be rewritten, the {2} does not what you
> apparently means it does:
>
> header    KLMSSPAM_90         X-KLMS-AntiSpam-Rate =~ /^(?:9[0-9]|100)$/
>
> should do what you expect.

Unfortunately not...

Same behaviour. Nothing changes...

Any other suggestion?

Thanks
Luca Bertoncello
(lucabert@lucabert.de)


Mime
View raw message