commit 974dafc: [Minor] Fix Sophos ENCRYPTED caching

Carsten Rosenberg c.rosenberg at heinlein-support.de
Sat Jan 25 09:56:06 UTC 2020


Author: Carsten Rosenberg
Date: 2020-01-23 20:43:08 +0100
URL: https://github.com/rspamd/rspamd/commit/974dafcbdda0d623bf2c807b8fd5da975e536610 (refs/pull/3235/head)

[Minor] Fix Sophos ENCRYPTED caching

---
 lualib/lua_scanners/sophos.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lualib/lua_scanners/sophos.lua b/lualib/lua_scanners/sophos.lua
index 200466b93..bfc1644ac 100644
--- a/lualib/lua_scanners/sophos.lua
+++ b/lualib/lua_scanners/sophos.lua
@@ -142,7 +142,7 @@ local function sophos_check(task, content, digest, rule)
           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, 'encrypted')
-            cached = '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')


More information about the Commits mailing list