]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix mid module with new maps syntax
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Nov 2016 16:16:06 +0000 (16:16 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 25 Nov 2016 16:16:06 +0000 (16:16 +0000)
conf/modules.d/mid.conf
src/plugins/lua/mid.lua

index 36639790aa3106e8fc224bf369d99680a6f3e686..db1a5dafb448fbae9d48bcc61843d4b885e0706e 100644 (file)
 # See https://rspamd.com/doc/tutorials/writing_rules.html for details
 
 mid = {
-    url = [
-        "${CONFDIR}/mid.inc",
-        "$LOCAL_CONFDIR/local.d/mid.inc"
-    ];
+    source = {
+        url = [
+            "${CONFDIR}/mid.inc",
+            "$LOCAL_CONFDIR/local.d/mid.inc"
+        ];
+    }
 
     .include(try=true,priority=5) "${DBDIR}/dynamic/mid.conf"
     .include(try=true,priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/mid.conf"
index aad626fe6a292d54ebe8a58b23726a72d8509b42..8c47578804b30c332be876c471652ef295a29bba 100644 (file)
@@ -66,7 +66,7 @@ if opts then
     settings[k] = v
   end
 
-  map = rspamd_map_add('mid', 'url', 'map', 'Message-IDs map')
+  map = rspamd_map_add('mid', 'source', 'map', 'Message-IDs map')
   if map then
     local id = rspamd_config:register_symbol({
       name = 'KNOWN_MID_CALLBACK',