]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Add message-id for Vade spam verdict
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Apr 2019 09:19:19 +0000 (10:19 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 3 Apr 2019 09:19:19 +0000 (10:19 +0100)
lualib/lua_scanners/vadesecure.lua

index 99ac19b3082f1e9a1672b33437601b59099cc740..64660ff411263bfc902dcab14e8547567807dca2 100644 (file)
@@ -166,8 +166,8 @@ local function vade_check(task, content, digest, rule)
       end
 
       if rule.log_spamcause and obj.spamcause then
-        rspamd_logger.infox(task, 'vadesecure returned verdict="%s", score=%s, spamcause="%s"',
-            verdict, obj.score, obj.spamcause)
+        rspamd_logger.infox(task, 'vadesecure verdict="%s", score=%s, spamcause="%s", message-id="%s"',
+            verdict, obj.score, obj.spamcause, task:get_message_id())
       else
         lua_util.debugm(rule.name, task, 'vadesecure returned verdict="%s", score=%s, spamcause="%s"',
             verdict, obj.score, obj.spamcause)