spamassassin-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Benny Pedersen ...@junc.eu>
Subject Re: Writing rules to parse Kaspersky-headers
Date Tue, 26 Sep 2017 12:53:07 GMT
Luca Bertoncello skrev den 2017-09-26 14:20:

> header    KLMSSPAM_LT10       X-KLMS-AntiSpam-Rate =~ /^([0-9]{1})$/
> describe  KLMSSPAM_LT10       E-Mail has less than 10% probability to
> be Spam according to Kaspersky
> score     KLMSSPAM_LT10       0.0

silly score, but rule is correct with pcre

> header    KLMSSPAM_1030       X-KLMS-AntiSpam-Rate =~ 
> /^([012]{1})([0-9]{1})$/
> describe  KLMSSPAM_1030       E-Mail has 10-30% probability to be Spam
>  according to Kaspersky
> score     KLMSSPAM_1030       0.5

[snip]

header    KLMSSPAM_1030       X-KLMS-AntiSpam-Rate =~ /^[1-2][0-9]{2}$/

untested

Mime
View raw message