diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-23 10:41:43 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-04-23 10:42:05 +0100 |
commit | 0bdb02adef792705f01eb2e9f1a153ceec26f4a7 (patch) | |
tree | 1d78564cabf2dc81985bdd012ed6964de913a684 /src | |
parent | 12383cf84693cf54874ce8a33f0e1d26d1a6b1a4 (diff) | |
download | rspamd-0bdb02adef792705f01eb2e9f1a153ceec26f4a7.tar.gz rspamd-0bdb02adef792705f01eb2e9f1a153ceec26f4a7.zip |
[Minor] Add support of glob maps to multimap
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/lua/multimap.lua | 12 |
1 files changed, 12 insertions, 0 deletions
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'], |