aboutsummaryrefslogtreecommitdiffstats
path: root/lualib/lua_scanners/sophos.lua
diff options
context:
space:
mode:
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>2020-01-23 20:43:08 +0100
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>2020-01-23 20:43:08 +0100
commit974dafcbdda0d623bf2c807b8fd5da975e536610 (patch)
tree6bd0d4955ae6095d6cac9fc87281656ec4c07bb6 /lualib/lua_scanners/sophos.lua
parentcd7d1c8a5a234833d94e21eff08a8dc6f340539f (diff)
downloadrspamd-974dafcbdda0d623bf2c807b8fd5da975e536610.tar.gz
rspamd-974dafcbdda0d623bf2c807b8fd5da975e536610.zip
[Minor] Fix Sophos ENCRYPTED caching
Diffstat (limited to 'lualib/lua_scanners/sophos.lua')
-rw-r--r--lualib/lua_scanners/sophos.lua2
1 files changed, 1 insertions, 1 deletions
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')