From: Vsevolod Stakhov Date: Tue, 5 Sep 2017 18:33:01 +0000 (+0100) Subject: [Minor] Avoid usage of the incorrect API X-Git-Tag: 1.6.4~16 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15309a62848bba39c81663941547d90b115603a5;p=thirdparty%2Frspamd.git [Minor] Avoid usage of the incorrect API --- diff --git a/src/plugins/lua/force_actions.lua b/src/plugins/lua/force_actions.lua index 88b09dfadb..33205431ca 100644 --- a/src/plugins/lua/force_actions.lua +++ b/src/plugins/lua/force_actions.lua @@ -69,7 +69,10 @@ 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) + --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)