dmarc-report-processor
dmarc-report-processor copied to clipboard
Extend output
Add report_id to output.
Hi, Thanks for the PR, and sorry for late response.
The output is a KV pair, separated by ','. So wondering why do we need to put quotes around org name.
We recently transitioned to primarily exporting JSON to address multiple issues we found in our KV extractions, which would also address any issues with fields that contain commas inappropriately
For example, records that contain multiple DKIM results
The script is filtering ',' chars from the value. Is this not sufficient:
org_name = (elem.findtext("org_name", 'NULL')).translate(None, ',')
Ref: https://github.com/vquiering/dmarc-report-processor/blob/c91c878190faa9e6c28730a4a56332a94e7c3f11/bin/dmarc-parser.py#L36