]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Limit BAD_EXTENSION rules to one shot 728/head
authorAlexander Moisseev <moiseev@mezonplus.ru>
Mon, 18 Jul 2016 07:02:42 +0000 (10:02 +0300)
committerAlexander Moisseev <moiseev@mezonplus.ru>
Mon, 18 Jul 2016 07:02:42 +0000 (10:02 +0300)
conf/metrics.conf

index ab2aa2de46d77069c28e7a8e1ce66379173b9879..bc0198626eba65b6cacd26f2b652a136677527af 100644 (file)
@@ -1042,10 +1042,12 @@ metric {
         symbol "MIME_DOUBLE_BAD_EXTENSION" {
             weight = 3.0; # This rule has dynamic weight up to 4.0
             description = "Bad extension cloaking";
+            one_shot = true;
         }
         symbol "MIME_BAD_EXTENSION" {
             weight = 2.0; # This rule has dynamic weight up to 4.0
             description = "Bad extension";
+            one_shot = true;
         }
     }
     group "url" {