From: Carsten Rosenberg Date: Thu, 23 Jan 2020 19:43:08 +0000 (+0100) Subject: [Minor] Fix Sophos ENCRYPTED caching X-Git-Tag: 2.3~48^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3235%2Fhead;p=rspamd.git [Minor] Fix Sophos ENCRYPTED caching --- 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')