tierpod / dmarc-report-converter

Convert dmarc reports from xml to human-readable formats
MIT License
223 stars 25 forks source link

ReadParseGZIP: unsupported MimeTypeGZIP #34

Closed thbff closed 1 year ago

thbff commented 1 year ago

Appeared this morning when processing files from the last week: files: ReadParseGZIP: supported mimetypes not found Seems Yahoo reports are the only culprit at the moment, though some of their files use application/x-gzip, some make use of application/gzip now (spotted for yahoo.co.uk, yahoo.com, yahoo.in, ymail.com).

Not a Go programmer, there seems to be a single MIME type for each possible format (xml, gz, zip) only, so not easy for me to adjust for multi type matching... Thanks ;-)

thbff commented 1 year ago

Turned out that yahoo was sending invalid reports containing string "unused" as content, so gzip mime type was correctly detected but expected xml not... got confused by values of mime structure parameters in original messages. Sorry for the noise...