]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Avoid usage of the incorrect API
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 5 Sep 2017 18:33:01 +0000 (19:33 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 6 Sep 2017 06:45:37 +0000 (07:45 +0100)
src/plugins/lua/force_actions.lua

index 88b09dfadb393a387a2d72e8077efa3f3838dd0e..33205431ca7274ca54408f61bd86eb5a6959738f 100644 (file)
@@ -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)