From d8465153ad5040699c2484d45b09ff504ba30e88 Mon Sep 17 00:00:00 2001 From: Andrew Lewis Date: Thu, 7 Sep 2017 21:49:41 +0200 Subject: [PATCH] Revert "[Minor] Avoid usage of the incorrect API" This reverts commit 7b207cf0f21f89f78f41ca15ef8c0bddfb5bc264. --- src/plugins/lua/force_actions.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index 33205431c..88b09dfad 100644 --- a/src/plugins/lua/force_actions.lua +++ b/src/plugins/lua/force_actions.lua @@ -69,10 +69,7 @@ local function gen_cb(expr, act, pool, message, subject, raction, honor) if e:process(task) == 1 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) -- 2.39.5