From: Vsevolod Stakhov Date: Wed, 23 Sep 2015 11:34:57 +0000 (+0100) Subject: Add descriptions for whitelist maps. X-Git-Tag: 1.0.2~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc9008931b1850b732dcbcc2e03e4dec2c3340ec;p=rspamd.git Add descriptions for whitelist maps. --- diff --git a/src/plugins/lua/whitelist.lua b/src/plugins/lua/whitelist.lua index 8f7c7b715..6bcc84bba 100644 --- a/src/plugins/lua/whitelist.lua +++ b/src/plugins/lua/whitelist.lua @@ -144,7 +144,8 @@ local configure_whitelist_module = function() each(function(symbol, rule) if rule['domains'] then if type(rule['domains']) == 'string' then - rule['map'] = rspamd_config:add_kv_map(rule['domains']) + rule['map'] = rspamd_config:add_kv_map(rule['domains'], + "Whitelist map for " .. symbol) elseif type(rule['domains']) == 'table' then -- Transform ['domain1', 'domain2' ...] to indexes: -- {'domain1' = 1, 'domain2' = 1 ...]