aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-23 12:34:57 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-09-23 12:34:57 +0100
commitdc9008931b1850b732dcbcc2e03e4dec2c3340ec (patch)
tree7f447dc6cc124c880dba1a348709e51c209cbd17 /src/plugins
parent3afc4aba24dd996950c3947b9cb6475271aec884 (diff)
downloadrspamd-dc9008931b1850b732dcbcc2e03e4dec2c3340ec.tar.gz
rspamd-dc9008931b1850b732dcbcc2e03e4dec2c3340ec.zip
Add descriptions for whitelist maps.
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/lua/whitelist.lua3
1 files changed, 2 insertions, 1 deletions
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 ...]