From: Vsevolod Stakhov Date: Sat, 16 Jul 2016 22:44:35 +0000 (+0100) Subject: [Minor] Add default description for multimap rules X-Git-Tag: 1.3.0~69 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=e952c532de5f12626031256cfa33663c25cb996c;p=rspamd.git [Minor] Add default description for multimap rules --- 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'])