Skip to content

Matter-Tech/dmarc-xslt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dmarc-xslt

Analyse DMARC aggregate reports using XSLT.

How to use

In an XML report file, add a reference to dmarc.xslt, e.g. like so:

<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://static.thisismatter.com/dmarc-xslt/dmarc.xslt" ?>

<feedback>
  Here be reports
</feedback>

Script

Also provided is a script, which extracts all archives (.zip and .gz) in the current working directory, and inserts the stylesheet.

$ ls
extract-reports.sh  'google.com!example.org!1622592000!1622678399.zip'

$ ./extract-reports.sh
...

$ ls
extract-reports.sh  'google.com!example.org!1622592000!1622678399.xml'  'google.com!example.org!1622592000!1622678399.zip'

$ cat 'google.com!example.org!1622592000!1622678399.xml'
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://static.thisismatter.com/dmarc-xslt/dmarc.xslt" ?>
<feedback>
  <report_metadata>
    <org_name>google.com</org_name>
    <email>noreply-dmarc-support@google.com</email>
...

About

DMARC aggregate report analysis with XSLT

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published