When a message violates DMARC policy, rspamd adds the following information to `redis` server:
- unixtime:ip:spf_result:dkim_result
+ unixtime,ip,spf_result,dkim_result
where results are `true` or `false` meaning allow and reject values accordingly.
Unixtime and IP are inserted in text form. Keys are therefore `lists` in redis terminology.
if not ip:is_valid() then
return nil
end
- local res = string.format('%d:%s:%s:%s', task:get_date(0),
+ local res = string.format('%d,%s,%s,%s', task:get_date(0),
ip:to_string(), tostring(spf_ok), tostring(dkim_ok))
return res