]> source.dussan.org Git - rspamd.git/commitdiff
Revert "[Minor] Avoid usage of the incorrect API"
authorAndrew Lewis <nerf@judo.za.org>
Thu, 7 Sep 2017 19:49:41 +0000 (21:49 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 9 Sep 2017 11:29:34 +0000 (12:29 +0100)
This reverts commit 7b207cf0f21f89f78f41ca15ef8c0bddfb5bc264.

src/plugins/lua/force_actions.lua

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