]> source.dussan.org Git - rspamd.git/commitdiff
The same with 'OK SSSP' messages 1576/head
authorMB <mb@nts.ch>
Mon, 3 Apr 2017 11:04:28 +0000 (13:04 +0200)
committerMB <mb@nts.ch>
Mon, 3 Apr 2017 11:04:28 +0000 (13:04 +0200)
src/plugins/lua/antivirus.lua

index ed06e47961cf8433d3062b94a9eaf9e9c6faf878..96ff2c6ae33b2a73066c7d9c5fbabc430e7a280f 100644 (file)
@@ -484,7 +484,7 @@ local function sophos_check(task, rule)
               rspamd_logger.infox(task, '%s [%s]: message is clean', rule['symbol'], rule['type'])
             end
             save_av_cache(task, rule, 'OK')
-          elseif string.find(data, 'ACC') then
+          elseif string.find(data, 'ACC') or string.find(data, 'OK SSSP') then
             conn:add_read(sophos_callback)
           else
             rspamd_logger.errx(task, 'unhandled response: %s', data)