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.
Add mime_content_type to ReportFile/MailAttachment to check for format of report
Add caching of mime type
Add caching of report file until message is processed
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.