aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/mid.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-24 11:58:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-24 11:58:32 +0000
commite6b6f6bb9c0d29c261e2c4c9457b552b82317136 (patch)
tree9f5acd9d46e30753fd844bda793284310b89b768 /src/plugins/lua/mid.lua
parente8736ad3af56d9e8087e768d49b960c351732b9e (diff)
downloadrspamd-e6b6f6bb9c0d29c261e2c4c9457b552b82317136.tar.gz
rspamd-e6b6f6bb9c0d29c261e2c4c9457b552b82317136.zip
[Rework] Use new maps add function
Diffstat (limited to 'src/plugins/lua/mid.lua')
-rw-r--r--src/plugins/lua/mid.lua9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/plugins/lua/mid.lua b/src/plugins/lua/mid.lua
index 5c29f5ab4..aad626fe6 100644
--- a/src/plugins/lua/mid.lua
+++ b/src/plugins/lua/mid.lua
@@ -66,13 +66,8 @@ if opts then
settings[k] = v
end
- if settings['url'] and #settings['url'] > 0 then
- map = rspamd_config:add_map ({
- url = settings['url'],
- type = 'map',
- description = 'Message-IDs map'
- })
-
+ map = rspamd_map_add('mid', 'url', 'map', 'Message-IDs map')
+ if map then
local id = rspamd_config:register_symbol({
name = 'KNOWN_MID_CALLBACK',
type = 'callback',