]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix Sophos ENCRYPTED caching 3235/head
authorCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Thu, 23 Jan 2020 19:43:08 +0000 (20:43 +0100)
committerCarsten Rosenberg <c.rosenberg@heinlein-support.de>
Thu, 23 Jan 2020 19:43:08 +0000 (20:43 +0100)
lualib/lua_scanners/sophos.lua

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