Skip to content
Permalink
Browse files

Merge pull request #61 from Clete2/fix-gzip

Add support for application/x-gzip mime type
  • Loading branch information...
techsneeze committed Dec 8, 2018
2 parents ae7a74a + de38046 commit 49a4e860dd155c9f6bf973b503c57585c15ffb2d
Showing with 2 additions and 2 deletions.
  1. +2 −2 dmarcts-report-parser.pl
@@ -464,7 +464,7 @@ sub getXMLFromMessage {

$location = $body->path;

} elsif (lc $mtype eq "application/gzip") {
} elsif (lc $mtype eq "application/gzip" or lc $mtype eq "application/x-gzip") {
if ($debug) {
print "This is a GZIP file \n";
}
@@ -485,7 +485,7 @@ sub getXMLFromMessage {
my $part = $ent->parts($i);

# Find a zip file to work on...
if(lc $part->mime_type eq "application/gzip") {
if(lc $part->mime_type eq "application/gzip" or lc $part->mime_type eq "application/x-gzip") {
$location = $ent->parts($i)->{ME_Bodyhandle}->{MB_Path};
$isgzip = 1;
print "$location\n" if $debug;

0 comments on commit 49a4e86

Please sign in to comment.
You can’t perform that action at this time.