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

On 26.09.17 14:53, Benny Pedersen wrote:
header    KLMSSPAM_1030       X-KLMS-AntiSpam-Rate =~ /^[1-2][0-9]{2}$/

this should hit all scores between 100 and 299. which is far away from
wanted.
the {2} means that the [0-9] has to appear twice. Which is, why I
recommended to remove all {1} quantifiers, because they are competely
useless, they just make the RE harder to read

--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
I'm not interested in your website anymore.
If you need cookies, bake them yourself.

Reply via email to