}
local function parse_arc_header(hdr, target)
+ -- Split elements by ';' and trim spaces
local arr = fun.totable(fun.map(
function(val)
return fun.totable(fun.map(lua_util.rspamd_str_trim,
-- Now we have two tables in format:
-- [sigs] -> [{sig1_elts}, {sig2_elts}...]
for i,elts in ipairs(arr) do
+ if not target[i] then target[i] = {} end
+ -- Split by kv pair, like k=v
fun.each(function(v)
- if not target[i] then target[i] = {} end
if v[1] and v[2] then
target[i][v[1]] = v[2]
end