]> source.dussan.org Git - rspamd.git/commitdiff
[Feature] Save trace for SA metas
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 31 Mar 2016 13:39:00 +0000 (14:39 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 31 Mar 2016 13:39:00 +0000 (14:39 +0100)
src/plugins/lua/spamassassin.lua

index afd5bc92604e4f331cfe9f244f9e45903fa706ab..69a3d1f78b67a53268a76dec286eda8486fc5552 100644 (file)
@@ -1362,15 +1362,16 @@ local function post_process()
       -- Meta function callback
       local meta_cb = function(task)
         local res = 0
+        local trace = {}
         -- XXX: need to memoize result for better performance
         local sym = task:has_symbol(k)
         if not sym then
           if expression then
-            res = expression:process(task)
+            res,trace = expression:process_traced(task)
           end
           if res > 0 then
             -- Symbol should be one shot to make it working properly
-            task:insert_result(k, res)
+            task:insert_result(k, res, trace)
           end
         else
           res = 1