aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-11 11:59:17 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-06-11 11:59:17 +0100
commit45a93b53b20a901db7cb2d473eb460083ae1e8a9 (patch)
tree393392151901877ebbecc880fd4365f8a5ab56a0 /src
parent04556d30fa011d8b5fc856511cedcd9a2769587b (diff)
downloadrspamd-45a93b53b20a901db7cb2d473eb460083ae1e8a9.tar.gz
rspamd-45a93b53b20a901db7cb2d473eb460083ae1e8a9.zip
[Fix] Fix arc count logic
Diffstat (limited to 'src')
-rw-r--r--src/plugins/lua/arc.lua14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/plugins/lua/arc.lua b/src/plugins/lua/arc.lua
index fc1c65769..c61423176 100644
--- a/src/plugins/lua/arc.lua
+++ b/src/plugins/lua/arc.lua
@@ -217,7 +217,9 @@ local function arc_callback(task)
task:insert_result(arc_symbols['allow'], 1.0, 'i=' ..
tostring(cbdata.checked))
else
- task:insert_result(arc_symbols['reject'], 1.0, cbdata.errors)
+ task:insert_result(arc_symbols['reject'], 1.0,
+ rspamd_logger.slog('seal check failed: %s, %s', cbdata.res,
+ cbdata.errors))
end
end
end
@@ -251,7 +253,9 @@ local function arc_callback(task)
end
end, cbdata.seals)
else
- task:insert_result(arc_symbols['reject'], 1.0, cbdata.errors)
+ task:insert_result(arc_symbols['reject'], 1.0,
+ rspamd_logger.slog('signature check failed: %s, %s', cbdata.res,
+ cbdata.errors))
end
end
end
@@ -270,8 +274,10 @@ local function arc_callback(task)
end
end, cbdata.sigs)
- if cbdata.checked == #arc_sig_headers then
- task:insert_result(arc_symbols['reject'], 1.0, cbdata.errors)
+ if cbdata.checked ~= #arc_sig_headers then
+ task:insert_result(arc_symbols['reject'], 1.0,
+ rspamd_logger.slog('cannot verify %s of signatures: %s',
+ #arc_sig_headers - cbdata.checked, cbdata.errors))
end
end