]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] lua_scanners - fix sophos encrypted symbol 3154/head
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Wed, 20 Nov 2019 09:34:01 +0000 (10:34 +0100)
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Wed, 20 Nov 2019 09:34:01 +0000 (10:34 +0100)
lualib/lua_scanners/sophos.lua

index 9da931c4e51b08ac10c2b8a62c9a63f002ae0a82..200466b93684cbf255b7fd6d2e6e483bde8e53d7 100644 (file)
@@ -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')