})
else
rspamd_logger.errx(task, 'failed to scan, maximum retransmits exceed')
+ upstream:fail()
end
else
rspamd_logger.errx(task, 'failed to scan: %s', err)
+ upstream:fail()
end
else
-
+ upstream:ok()
data = tostring(data)
local found = (string.sub(data, 1, 1) == '1')
local cached = 'OK'
})
else
rspamd_logger.errx(task, 'failed to scan, maximum retransmits exceed')
+ upstream:fail()
end
else
rspamd_logger.errx(task, 'failed to scan: %s', err)
+ upstream:fail()
end
else
-
+ upstream:ok()
data = tostring(data)
local s = string.find(data, ' FOUND')
local cached = 'OK'
})
else
rspamd_logger.errx(task, 'failed to scan, maximum retransmits exceed')
+ upstream:fail()
end
else
rspamd_logger.errx(task, 'failed to scan: %s', err)
+ upstream:fail()
end
else
-
+ upstream:ok()
data = tostring(data)
local vname = string.match(data, 'VIRUS (%S+) ')
if vname then
})
else
rspamd_logger.errx(task, 'failed to scan, maximum retransmits exceed')
+ upstream:fail()
end
else
rspamd_logger.errx(task, 'failed to scan: %s', err)
+ upstream:fail()
end
else
-
+ upstream:ok()
local result = tostring(data)
-- 100 SAVAPI:4.0 greeting