aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-16 23:44:35 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-16 23:44:58 +0100
commite952c532de5f12626031256cfa33663c25cb996c (patch)
tree583afe6b8650a03e29c421ad6af3a78d6ee5b2b6 /src/plugins
parentf86a899d306a2f8fd459219ad7ed5d1ef56d2e0b (diff)
downloadrspamd-e952c532de5f12626031256cfa33663c25cb996c.tar.gz
rspamd-e952c532de5f12626031256cfa33663c25cb996c.zip
[Minor] Add default description for multimap rules
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/multimap.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/lua/multimap.lua b/src/plugins/lua/multimap.lua
index de20bb323..12a59c32f 100644
--- a/src/plugins/lua/multimap.lua
+++ b/src/plugins/lua/multimap.lua
@@ -473,6 +473,10 @@ local function add_multimap_rule(key, newrule)
rspamd_logger.errx(rspamd_config, 'incomplete rule, missing symbol')
return nil
end
+ if not newrule['description'] then
+ newrule['description'] = string.format('multimap, type %s: %s', newrule['type'],
+ newrule['symbol'])
+ end
-- Check cdb flag
if string.find(newrule['map'], '^cdb://.*$') then
local test = cdb.create(newrule['map'])