You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes auth_results contains several times (twice or more) the same DKIM values.
Ex: (I converted the format to json) {"dkim":[{"domain":"pmlgu-etau-40.ovh","selector":"nice","result":"pass"},{"domain":"pmlgu-etau-40.ovh","selector":"nice","result":"pass"}],"spf":[{"domain":"srv217x178.pmlgu-etau-40.ovh","scope":"mfrom","result":"pass"}]}
Could parsedmarc remove duplicates ?
In my side I do that :
function json_unique($json) { $return = array(); $json = json_decode($json,true); ksort($json); foreach ($json as $key=>$values) { ksort($values); $values = array_unique(array_map('json_encode',$values)); $tab = array(); foreach ($values as $value) { $tab[] = json_decode($value,true); } if ($tab) $return[$key] = $tab; } return json_encode($return); }
The text was updated successfully, but these errors were encountered:
- Ignore duplicate aggregate DMARC reports with the same `org_name` and `report_id` seen within the same hour ([#539](#539))
- Fix saving SMTP TLS reports to OpenSearch (PR #585 closed issue #576)
- Add 303 entries to `base_reverse_dns_map.csv`
Hello,
Sometimes auth_results contains several times (twice or more) the same DKIM values.
Ex: (I converted the format to json)
{"dkim":[{"domain":"pmlgu-etau-40.ovh","selector":"nice","result":"pass"},{"domain":"pmlgu-etau-40.ovh","selector":"nice","result":"pass"}],"spf":[{"domain":"srv217x178.pmlgu-etau-40.ovh","scope":"mfrom","result":"pass"}]}
Could parsedmarc remove duplicates ?
In my side I do that :
function json_unique($json) { $return = array(); $json = json_decode($json,true); ksort($json); foreach ($json as $key=>$values) { ksort($values); $values = array_unique(array_map('json_encode',$values)); $tab = array(); foreach ($values as $value) { $tab[] = json_decode($value,true); } if ($tab) $return[$key] = $tab; } return json_encode($return); }
The text was updated successfully, but these errors were encountered: