Closed 0xabu closed 12 months ago
Made a pull request #430 , that should fix the problem.
It may be worth adding tests for this if you're willing to provide a sample email @0xabu or by generating our own spurious sample.
Sure: mimecast-bad-dmarc.eml
I've recently received some reports from Mimecast that parsedmarc flags as invalid. The root cause appears to be that they have an attachment, where the valid gzipped report data is followed by a spurious CRLF. This causes Python's GzipFile to reject them here:
However, the command-line
gzip
tools extract them without issue, and presumably other parsers handle these too.I found some discussion of the limitations of
GzipFile
here -- maybe one of these workarounds would make sense for parsedmarc?These reports came from: