mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-11-21 22:42:39 +00:00
1.0.5 - Properly format errors list in CSV output
This commit is contained in:
1 parent
4d0c33b59f
commit
c8d7bc703e
4 files changed
+5
-4
No files matched your search
@@ -1,6 +1,7 @@
|
|||||||
1.0.5
|
1.0.5
|
||||||
-----
|
-----
|
||||||
- Prefix public suffix and GeoIP2 database filenames with `.`
|
- Prefix public suffix and GeoIP2 database filenames with `.`
|
||||||
|
- Properly format errors list in CSV output
|
||||||
|
|
||||||
1.0.3
|
1.0.3
|
||||||
-----
|
-----
|
||||||
|
|||||||
+1
-1
@@ -127,7 +127,7 @@ CSV
|
|||||||
::
|
::
|
||||||
|
|
||||||
xml_schema,org_name,org_email,org_extra_contact_info,report_id,begin_date,end_date,errors,domain,adkim,aspf,p,sp,pct,fo,source_ip_address,source_country,source_reverse_dns,source_base_domain,count,disposition,dkim_alignment,spf_alignment,policy_override_reasons,policy_override_comments,envelope_from,header_from,envelope_to,dkim_domains,dkim_selectors,dkim_results,spf_domains,spf_scopes,spf_results
|
xml_schema,org_name,org_email,org_extra_contact_info,report_id,begin_date,end_date,errors,domain,adkim,aspf,p,sp,pct,fo,source_ip_address,source_country,source_reverse_dns,source_base_domain,count,disposition,dkim_alignment,spf_alignment,policy_override_reasons,policy_override_comments,envelope_from,header_from,envelope_to,dkim_domains,dkim_selectors,dkim_results,spf_domains,spf_scopes,spf_results
|
||||||
draft,acme.com,noreply-dmarc-support@acme.com,http://acme.com/dmarc/support,9391651994964116463,2012-04-27 20:00:00,2012-04-28 19:59:59,[],example.com,r,r,none,none,100,0,72.150.241.94,US,adsl-72-150-241-94.shv.bellsouth.net,bellsouth.net,2,none,fail,pass,,,example.com,example.com,,example.com,none,fail,example.com,mfrom,pass
|
draft,acme.com,noreply-dmarc-support@acme.com,http://acme.com/dmarc/support,9391651994964116463,2012-04-27 20:00:00,2012-04-28 19:59:59,,example.com,r,r,none,none,100,0,72.150.241.94,US,adsl-72-150-241-94.shv.bellsouth.net,bellsouth.net,2,none,fail,pass,,,example.com,example.com,,example.com,none,fail,example.com,mfrom,pass
|
||||||
|
|
||||||
What about forensic DMARC reports?
|
What about forensic DMARC reports?
|
||||||
==================================
|
==================================
|
||||||
|
|||||||
+1
-1
@@ -132,7 +132,7 @@ CSV
|
|||||||
::
|
::
|
||||||
|
|
||||||
xml_schema,org_name,org_email,org_extra_contact_info,report_id,begin_date,end_date,errors,domain,adkim,aspf,p,sp,pct,fo,source_ip_address,source_country,source_reverse_dns,source_base_domain,count,disposition,dkim_alignment,spf_alignment,policy_override_reasons,policy_override_comments,envelope_from,header_from,envelope_to,dkim_domains,dkim_selectors,dkim_results,spf_domains,spf_scopes,spf_results
|
xml_schema,org_name,org_email,org_extra_contact_info,report_id,begin_date,end_date,errors,domain,adkim,aspf,p,sp,pct,fo,source_ip_address,source_country,source_reverse_dns,source_base_domain,count,disposition,dkim_alignment,spf_alignment,policy_override_reasons,policy_override_comments,envelope_from,header_from,envelope_to,dkim_domains,dkim_selectors,dkim_results,spf_domains,spf_scopes,spf_results
|
||||||
draft,acme.com,noreply-dmarc-support@acme.com,http://acme.com/dmarc/support,9391651994964116463,2012-04-27 20:00:00,2012-04-28 19:59:59,[],example.com,r,r,none,none,100,0,72.150.241.94,US,adsl-72-150-241-94.shv.bellsouth.net,bellsouth.net,2,none,fail,pass,,,example.com,example.com,,example.com,none,fail,example.com,mfrom,pass
|
draft,acme.com,noreply-dmarc-support@acme.com,http://acme.com/dmarc/support,9391651994964116463,2012-04-27 20:00:00,2012-04-28 19:59:59,,example.com,r,r,none,none,100,0,72.150.241.94,US,adsl-72-150-241-94.shv.bellsouth.net,bellsouth.net,2,none,fail,pass,,,example.com,example.com,,example.com,none,fail,example.com,mfrom,pass
|
||||||
|
|
||||||
What about forensic DMARC reports?
|
What about forensic DMARC reports?
|
||||||
==================================
|
==================================
|
||||||
|
|||||||
+2
-2
@@ -30,7 +30,7 @@ from requests import get
|
|||||||
import geoip2.database
|
import geoip2.database
|
||||||
import geoip2.errors
|
import geoip2.errors
|
||||||
|
|
||||||
__version__ = "1.0.4"
|
__version__ = "1.0.5"
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
logger.setLevel(logging.WARNING)
|
logger.setLevel(logging.WARNING)
|
||||||
@@ -506,7 +506,7 @@ def parsed_aggregate_report_to_csv(_input):
|
|||||||
report_id = report["report_metadata"]["report_id"]
|
report_id = report["report_metadata"]["report_id"]
|
||||||
begin_date = report["report_metadata"]["begin_date"]
|
begin_date = report["report_metadata"]["begin_date"]
|
||||||
end_date = report["report_metadata"]["end_date"]
|
end_date = report["report_metadata"]["end_date"]
|
||||||
errors = report["report_metadata"]["errors"]
|
errors = "|".join(report["report_metadata"]["errors"])
|
||||||
domain = report["policy_published"]["domain"]
|
domain = report["policy_published"]["domain"]
|
||||||
adkim = report["policy_published"]["adkim"]
|
adkim = report["policy_published"]["adkim"]
|
||||||
aspf = report["policy_published"]["aspf"]
|
aspf = report["policy_published"]["aspf"]
|
||||||
|
|||||||
Reference in new issue
Block a user