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 reformime, xsltproc, makemime, and a custom C program which execs funzip or zcat. Goofy, uh?
Zip of gzip?
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:
Update: Since version 3.0 funzip supports gzip as well. The code below is useless.
Copyright (C) 2012-2025 Alessandro Vesely, all rights reserved except as noted.