summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/lua/multimap.lua12
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'],