end
end
- local function icap_r_respond_cb(err, data, conn)
- if err or conn == nil then
+ local function icap_r_respond_cb(error, data, connection)
+ if error or connection == nil then
icap_requery(err, "icap_r_respond_cb")
else
local result = tostring(data)
end
end
- local function icap_w_respond_cb(err, conn)
- if err or conn == nil then
+ local function icap_w_respond_cb(error, connection)
+ if error or connection == nil then
icap_requery(err, "icap_w_respond_cb")
else
- conn:add_read(icap_r_respond_cb, '\r\n\r\n')
+ connection:add_read(icap_r_respond_cb, '\r\n\r\n')
end
end
- local function icap_r_options_cb(err, data, conn)
- if err or conn == nil then
+ local function icap_r_options_cb(error, data, connection)
+ if error or connection == nil then
icap_requery(err, "icap_r_options_cb")
else
local icap_headers = icap_result_header_table(tostring(data))
rspamd_logger.errx(task, '%s: Error message: %s',
rule.log_prefix, result[2]['message'])
oletools_requery(oletools_rc[result[3]['return_code']])
- elseif type(result[2]['analysis']) == 'table' and #result[2]['analysis'] == 0 and #result[2]['macros'] == 0 then
+ elseif type(result[2]['analysis']) == 'table' and #result[2]['analysis'] == 0
+ and #result[2]['macros'] == 0 then
rspamd_logger.warnx(task, '%s: maybe unhandled python or oletools error', rule.log_prefix)
common.yield_result(task, rule, 'oletools unhandled error', 0.0, 'fail')
elseif type(result[2]['analysis']) ~= 'table' and #result[2]['macros'] == 0 then