From 0bdb02adef792705f01eb2e9f1a153ceec26f4a7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 23 Apr 2018 10:41:43 +0100 Subject: [PATCH] [Minor] Add support of glob maps to multimap --- src/plugins/lua/multimap.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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'], -- 2.39.5