summaryrefslogtreecommitdiffstats
path: root/lualib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-11-21 14:03:19 +0000
committerGitHub <noreply@github.com>2019-11-21 14:03:19 +0000
commit7259db62ec1056de5550f0a495ebd777c879fab2 (patch)
treeadbb9d3928be7221adec1e2a542d5c4e71ea452f /lualib
parentd6f2dc67078d48e2623d5920e202c888300bd685 (diff)
parent74b563b7dd25c2b9b8fd0ea6cebbce990248d52e (diff)
downloadrspamd-7259db62ec1056de5550f0a495ebd777c879fab2.tar.gz
rspamd-7259db62ec1056de5550f0a495ebd777c879fab2.zip
Merge pull request #3154 from HeinleinSupport/master
[Minor] lua_scanners - fix sophos encrypted symbol
Diffstat (limited to 'lualib')
-rw-r--r--lualib/lua_scanners/sophos.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lualib/lua_scanners/sophos.lua b/lualib/lua_scanners/sophos.lua
index 9da931c4e..200466b93 100644
--- a/lualib/lua_scanners/sophos.lua
+++ b/lualib/lua_scanners/sophos.lua
@@ -141,8 +141,8 @@ local function sophos_check(task, content, digest, rule)
conn:add_read(sophos_callback)
elseif string.find(data, 'FAIL 0212') then
rspamd_logger.warnx(task, 'Message is encrypted (FAIL 0212): %s', data)
- common.yield_result(task, rule, 'SAVDI: Message is encrypted (FAIL 0212)', 0.0, 'fail')
- cached = 'ENCRYPTED'
+ common.yield_result(task, rule, 'SAVDI: Message is encrypted (FAIL 0212)', 0.0, 'encrypted')
+ cached = 'encrypted'
elseif string.find(data, 'REJ 4') then
rspamd_logger.warnx(task, 'Message is oversized (REJ 4): %s', data)
common.yield_result(task, rule, 'SAVDI: Message oversized (REJ 4)', 0.0, 'fail')