The task is to get the XML file from the attachment, transform it to HTML, and then re-attach the original message. The extractor sets up two temporary files and two pipelines, invoking
makemime, and a custom C program which execs
zcat. Goofy, uh?
The compression was initially done using zip. Later on, when
application/gzip was standardized, DMARC specified gzip instead. Now, if you're good at Perl, you could fix the above Perl script. Otherwise, copy, paste, and compile the following C file:
Copyright (C) 2012-2015 Alessandro Vesely, all rights reserved except as noted.