dmarc-report-parser 0.2.0

An RFC 7489-compliant DMARC aggregate report parser
Documentation
<?xml version="1.0" encoding="UTF-8"?>
<feedback>
  <report_metadata>
    <org_name>Globex</org_name>
    <email>postmaster@globex.example</email>
    <report_id>20130902.r.globex.example</report_id>
    <date_range>
      <begin>1378080000</begin>
      <end>1378166400</end>
    </date_range>
  </report_metadata>
  <policy_published>
    <domain>globex.example</domain>
    <p>quarantine</p>
    <sp>quarantine</sp>
    <pct>100</pct>
  </policy_published>
  <record>
    <row>
      <source_ip>198.51.100.7</source_ip>
      <count>5</count>
      <policy_evaluated>
        <disposition>quarantine</disposition>
        <dkim>fail</dkim>
        <spf>fail</spf>
      </policy_evaluated>
    </row>
    <identifiers>
      <envelope_from>globex.example</envelope_from>
      <header_from>globex.example</header_from>
    </identifiers>
    <auth_results>
      <spf>
        <domain>globex.example</domain>
        <result>fail</result>
      </spf>
    </auth_results>
  </record>
</feedback>