})
else
rspamd_logger.errx(task, 'failed to scan, maximum retransmits exceed')
+ task:insert_result(rule['symbol_fail'], 0.0, 'retransmits exceed')
upstream:fail()
end
else
rspamd_logger.errx(task, 'failed to scan: %s', err)
+ task:insert_result(rule['symbol_fail'], 0.0, 'failed to scan')
upstream:fail()
end
else
local function add_antivirus_rule(sym, opts)
if not opts['type'] then
+ rspamd_logger.errx(rspamd_config, 'unknown type for AV rule %s', sym)
return nil
end
local rule = cfg.configure(opts)
rule.type = opts.type
+ rule.symbol_fail = opts.symbol_fail
if not rule then