From: Vsevolod Stakhov Date: Mon, 23 Apr 2018 09:41:43 +0000 (+0100) Subject: [Minor] Add support of glob maps to multimap X-Git-Tag: 1.7.4~50 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0bdb02adef792705f01eb2e9f1a153ceec26f4a7;p=rspamd.git [Minor] Add support of glob maps to multimap --- diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua index 9d8ff54fd..e2c5e2f59 100644 --- a/src/plugins/lua/multimap.lua +++ b/src/plugins/lua/multimap.lua @@ -944,6 +944,12 @@ local function add_multimap_rule(key, newrule) description = newrule['description'], type = 'regexp' }) + elseif newrule['glob'] then + newrule['hash'] = rspamd_config:add_map ({ + url = newrule['map'], + description = newrule['description'], + type = 'glob' + }) else newrule['hash'] = rspamd_config:add_map ({ url = newrule['map'], @@ -983,6 +989,12 @@ local function add_multimap_rule(key, newrule) description = newrule['description'], type = 'regexp' }) + elseif newrule['glob'] then + newrule['hash'] = rspamd_config:add_map ({ + url = newrule['map'], + description = newrule['description'], + type = 'glob' + }) else newrule['hash'] = rspamd_config:add_map ({ url = newrule['map'],