diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-13 13:30:07 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-10-13 13:30:23 +0100 |
commit | 0125a1a77135813ca7ae93a1571c6919d640d72b (patch) | |
tree | ee9b5a7b2e2ed82cba4807239e4e135028ada618 /src/plugins/lua/spamtrap.lua | |
parent | 96b89f654ee0d57987f7094707691fc04c631697 (diff) | |
download | rspamd-0125a1a77135813ca7ae93a1571c6919d640d72b.tar.gz rspamd-0125a1a77135813ca7ae93a1571c6919d640d72b.zip |
[Minor] Include module name when setting pre result
Diffstat (limited to 'src/plugins/lua/spamtrap.lua')
-rw-r--r-- | src/plugins/lua/spamtrap.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/lua/spamtrap.lua b/src/plugins/lua/spamtrap.lua index 85af46dd2..97107c275 100644 --- a/src/plugins/lua/spamtrap.lua +++ b/src/plugins/lua/spamtrap.lua @@ -66,7 +66,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'], - lua_util.template(settings.smtp_message, { rcpt = rcpt})) + lua_util.template(settings.smtp_message, { rcpt = rcpt}), 'spamtrap') else local smtp_message = 'unknown error' if settings.action == 'no action' then @@ -74,7 +74,7 @@ local function spamtrap_cb(task) elseif settings.action == 'reject' then smtp_message = 'message rejected' end - task:set_pre_result(settings['action'], smtp_message) + task:set_pre_result(settings['action'], smtp_message, 'spamtrap') end end end |