h:reset()
end
h:update(t['str'])
- if not (h:hex() == t['hex']) then
+ if h:hex() ~= t['hex'] then
t['error'] = 'sum mismatch: ' .. h:hex()
table.insert(worry, logger.slog('%1', t))
end
end
end
- cur_rule['ordinary'] = ordinary and (not (#hdr_params > 1))
+ cur_rule['ordinary'] = ordinary and #hdr_params <= 1
cur_rule['header'] = hdr_params
end
end
rspamd_logger.messagex('stored multimap conf in %s', 'auto_multimap.conf')
local sa_remain = io.open('auto_sa.conf', 'w')
-fun.each(function(l)
+fun.each(function(l)
sa_remain:write(l)
sa_remain:write('\n')
end, fun.filter(function(l) return not string.match(l, '^%s+$') end, complicated))