aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/spamtrap.lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-10 18:16:34 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-08-10 18:16:34 +0100
commit11043c12801e027ad1352dc1f5da943cafb640eb (patch)
treef5e9720de934b38812793a4297fdfd848fb524dd /src/plugins/lua/spamtrap.lua
parentcd994934d1f2bfd7ca484a5588c1d9911f140c35 (diff)
downloadrspamd-11043c12801e027ad1352dc1f5da943cafb640eb.tar.gz
rspamd-11043c12801e027ad1352dc1f5da943cafb640eb.zip
[Feature] Use pure Lua debugm function
Diffstat (limited to 'src/plugins/lua/spamtrap.lua')
-rw-r--r--src/plugins/lua/spamtrap.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plugins/lua/spamtrap.lua b/src/plugins/lua/spamtrap.lua
index 2e8c26238..cf0b89957 100644
--- a/src/plugins/lua/spamtrap.lua
+++ b/src/plugins/lua/spamtrap.lua
@@ -21,7 +21,7 @@ local rspamd_logger = require "rspamd_logger"
local redis_params
local use_redis = false;
local M = 'spamtrap'
-local lutil = require "lua_util"
+local lua_util = require "lua_util"
local settings = {
symbol = 'SPAMTRAP',
@@ -65,7 +65,7 @@ local function spamtrap_cb(task)
rspamd_logger.infox(task, 'spamtrap found: <%s>', rcpt)
if settings.smtp_message then
task:set_pre_result(settings['action'],
- lutil.template(settings.smtp_message, {rcpt = rcpt}))
+ lua_util.template(settings.smtp_message, { rcpt = rcpt}))
else
local smtp_message = 'unknown error'
if settings.action == 'no action' then
@@ -104,7 +104,7 @@ local function spamtrap_cb(task)
end
called_for_domain = true
else
- rspamd_logger.debugm(M, task, 'skip spamtrap for %s', target)
+ lua_util.debugm(M, task, 'skip spamtrap for %s', target)
end
end
end
@@ -129,7 +129,7 @@ local function spamtrap_cb(task)
if settings['map']:get_key(target) then
do_action(target)
else
- rspamd_logger.debugm(M, task, 'skip spamtrap for %s', target)
+ lua_util.debugm(M, task, 'skip spamtrap for %s', target)
end
end
end