]> source.dussan.org Git - 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>
Tue, 5 Sep 2017 18:34:36 +0000 (19:34 +0100)
src/plugins/lua/force_actions.lua

index d2806d1f7825762407dee89996237fbfc31276ba..2e337ee7703fd2a407785f356057c32e1a24bc67 100644 (file)
@@ -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)