aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/lua/force_actions.lua
diff options
context:
space:
mode:
authorAndrew Lewis <nerf@judo.za.org>2017-09-07 21:49:41 +0200
committerAndrew Lewis <nerf@judo.za.org>2017-09-07 21:49:41 +0200
commite2cc675c46b3c64652d06243ca8448c47702210c (patch)
tree3f41954b5f0932d3e8a80a849abf1b058ebb974f /src/plugins/lua/force_actions.lua
parent5ac4d8aad6743bbfb4c46fdb00c0e4bf562ba244 (diff)
downloadrspamd-e2cc675c46b3c64652d06243ca8448c47702210c.tar.gz
rspamd-e2cc675c46b3c64652d06243ca8448c47702210c.zip
Revert "[Minor] Avoid usage of the incorrect API"
This reverts commit 7b207cf0f21f89f78f41ca15ef8c0bddfb5bc264.
Diffstat (limited to 'src/plugins/lua/force_actions.lua')
-rw-r--r--src/plugins/lua/force_actions.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua
index 2e337ee77..d2806d1f7 100644
--- a/src/plugins/lua/force_actions.lua
+++ b/src/plugins/lua/force_actions.lua
@@ -71,10 +71,7 @@ local function gen_cb(expr, act, pool, message, subject, raction, honor, limit)
local ret = e:process(task)
if ret > limit then
if subject then
- --task:set_metric_subject(subject)
- --XXX: alewis: it won't work this way, we need to either remove this
- --feature or to rewrite it completely so far
- rspamd_logger.warnx("subject is now not supported by this module")
+ task:set_metric_subject(subject)
end
if type(message) == 'string' then
task:set_pre_result(act, message)