]> source.dussan.org Git - rspamd.git/commitdiff
Add descriptions for whitelist maps.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Sep 2015 11:34:57 +0000 (12:34 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 23 Sep 2015 11:34:57 +0000 (12:34 +0100)
src/plugins/lua/whitelist.lua

index 8f7c7b71518de0e3ad3f017c6bf8f15613568b38..6bcc84bbaa03af313097f024b9c1502f1a56d29b 100644 (file)
@@ -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 ...]