aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-05 19:33:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-09-05 19:34:36 +0100
commit7b207cf0f21f89f78f41ca15ef8c0bddfb5bc264 (patch)
tree3c12e44afbc679809903beb250c9c58c439203b9
parente809039a9e84cb6235a6447d1c9c8fc34ddcf8c6 (diff)
downloadrspamd-7b207cf0f21f89f78f41ca15ef8c0bddfb5bc264.tar.gz
rspamd-7b207cf0f21f89f78f41ca15ef8c0bddfb5bc264.zip
[Minor] Avoid usage of the incorrect API
-rw-r--r--src/plugins/lua/force_actions.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua
index d2806d1f7..2e337ee77 100644
--- a/src/plugins/lua/force_actions.lua
+++ b/src/plugins/lua/force_actions.lua
@@ -71,7 +71,10 @@ 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)
+ --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")
end
if type(message) == 'string' then
task:set_pre_result(act, message)