-image/*; ~/.mutt/mutt_bgrun feh %s;
-application/pdf; ~/.mutt/mutt_bgrun okular %s;
-application/*; ~/.mutt/mutt_bgrun mimeo %s;
+text/calendar; $XDG_CONFIG_HOME/mutt/ical2txt; copiousoutput
+# generate html from dmarc report, testing against *rmz.io* because all other tests were too difficult
+application/gzip; zcat | xsltproc $XDG_CONFIG_HOME/mutt/dmarc.xsl - > /tmp/dmarc.html && qutebrowser /tmp/dmarc.html ;\
+ test=[[ '%s' == *rmz.io* ]]
+application/zip; funzip | xsltproc $XDG_CONFIG_HOME/mutt/dmarc.xsl - > /tmp/dmarc.html && qutebrowser /tmp/dmarc.html ;\
+ test=[[ '%s' == *rmz.io* ]]
+application/gzip; zcat | xsltproc $XDG_CONFIG_HOME/mutt/dmarc.xsl - | w3m -dump - -T text/html ; copiousoutput ; test=[[ '%s' == *rmz.io* ]]
+application/zip; funzip | xsltproc $XDG_CONFIG_HOME/mutt/dmarc.xsl - | w3m -dump - -T text/html ; copiousoutput ; test=[[ '%s' == *rmz.io* ]]
+application/*; $XDG_CONFIG_HOME/mutt/mutt_bgrun rifle -f F %s;
+image/*; rifle -f F %s;