]> source.dussan.org Git - rspamd.git/commitdiff
Add symbols for mime_types to the default config
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Jan 2016 14:36:25 +0000 (14:36 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 23 Jan 2016 14:36:25 +0000 (14:36 +0000)
conf/metrics.conf
conf/modules.d/mime_types.conf [new file with mode: 0644]

index aae3ebfb1a3461b47c3579d76f2c2eb013d1b70d..4b3d4b10306896be9615cd1d1911d5f12b55e2b8 100644 (file)
@@ -1201,4 +1201,26 @@ metric {
                description = "DMARC failed";
        }
     }
+    group {
+       name = "mime_types";
+
+       symbol {
+               weight = -0.1;
+               name = "MIME_GOOD";
+               description = "Known content-type";
+                       one_shot = true;
+       }
+       symbol {
+               weight = 1.0;
+               name = "MIME_BAD";
+               description = "Known bad content-type";
+                       one_shot = true;
+       }
+       symbol {
+               weight = 0.1;
+               name = "MIME_UNKNOWN";
+               description = "Missing or unknown content-type";
+                       one_shot = true;
+       }
+    }
 }
diff --git a/conf/modules.d/mime_types.conf b/conf/modules.d/mime_types.conf
new file mode 100644 (file)
index 0000000..6b8ec36
--- /dev/null
@@ -0,0 +1,4 @@
+mime_types {
+    .include(try=true,priority=1) "${DBDIR}/dynamic/mime_types.conf"
+    file = "${ETCDIR}/mime_types.inc";
+}