From: Vsevolod Stakhov Date: Fri, 25 Nov 2016 16:16:06 +0000 (+0000) Subject: [Fix] Fix mid module with new maps syntax X-Git-Tag: 1.4.1~61 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=250146dd53fec9b63952c99efcd0d0c6dc4d52e1;p=thirdparty%2Frspamd.git [Fix] Fix mid module with new maps syntax --- diff --git a/conf/modules.d/mid.conf b/conf/modules.d/mid.conf index 36639790aa..db1a5dafb4 100644 --- a/conf/modules.d/mid.conf +++ b/conf/modules.d/mid.conf @@ -14,10 +14,12 @@ # 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" diff --git a/src/plugins/lua/mid.lua b/src/plugins/lua/mid.lua index aad626fe6a..8c47578804 100644 --- a/src/plugins/lua/mid.lua +++ b/src/plugins/lua/mid.lua @@ -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',