liuch / dmarc-srg

A php parser, viewer and summary report generator for incoming DMARC reports.
GNU General Public License v3.0
218 stars 32 forks source link

Add mime_content_type support #36

Closed smeinecke closed 1 year ago

smeinecke commented 1 year ago

As some providers don't set the correct extension in filename (filename in attachment was .zip, but file itself was gzip encoded) in report mails I added support for mime_content_type to extract the format of the report if fileinfo/mime_content_type (libmagic) is available.

If the optional extension is not installed, filename extension is still used.