From: Carsten Rosenberg Date: Wed, 20 Nov 2019 09:34:01 +0000 (+0100) Subject: [Minor] lua_scanners - fix sophos encrypted symbol X-Git-Tag: 2.3~316^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3154%2Fhead;p=thirdparty%2Frspamd.git [Minor] lua_scanners - fix sophos encrypted symbol --- diff --git a/lualib/lua_scanners/sophos.lua b/lualib/lua_scanners/sophos.lua index 9da931c4e5..200466b936 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')