aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-12 15:59:49 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2021-11-12 15:59:49 +0000
commit4a0bb98bef3e80e02d6f995988244266eb8893bf (patch)
tree0d0801c1a51de23fc2d54b6e6af6b48a5cde7ef8 /lualib/lua_scanners
parent4e7488a38a5785462d0079bcb4d7151866be2c34 (diff)
downloadrspamd-4a0bb98bef3e80e02d6f995988244266eb8893bf.tar.gz
rspamd-4a0bb98bef3e80e02d6f995988244266eb8893bf.zip
[Minor] Add analysis logging
Diffstat (limited to 'lualib/lua_scanners')
-rw-r--r--lualib/lua_scanners/cloudmark.lua7
1 files changed, 6 insertions, 1 deletions
diff --git a/lualib/lua_scanners/cloudmark.lua b/lualib/lua_scanners/cloudmark.lua
index 18cacc2d6..bfea884cb 100644
--- a/lualib/lua_scanners/cloudmark.lua
+++ b/lualib/lua_scanners/cloudmark.lua
@@ -107,7 +107,7 @@ local function cloudmark_config(opts)
log_spamcause = true,
symbol_fail = 'CLOUDMARK_FAIL',
symbol = 'CLOUDMARK_CHECK',
- symbol_spam = 'CLOUDMARK_SPAM'
+ symbol_spam = 'CLOUDMARK_SPAM',
}
cloudmark_conf = lua_util.override_defaults(cloudmark_conf, opts)
@@ -215,6 +215,11 @@ local function parse_cloudmark_reply(task, rule, body)
return
end
+ if obj.analysis then
+ -- Report analysis string
+ rspamd_logger.infox(task, 'cloudmark report string: %s', obj.analysis)
+ end
+
local score = tonumber(obj.score) or 0
if score >= rule.score_threshold then
task:insert_result(rule.symbol_spam, 1.0, tostring(score))