Browse Source

Merge pull request #3235 from HeinleinSupport/master

[Minor] Fix Sophos ENCRYPTED caching
tags/2.3
Vsevolod Stakhov 4 years ago
parent
commit
9bad1e7d1c
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      lualib/lua_scanners/sophos.lua

+ 1
- 1
lualib/lua_scanners/sophos.lua View 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')

Loading…
Cancel
Save