X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/4d94e66311d0d33a73a84deabbcad7302a836ff4..c6a94b49c00ea320c67909cbe0d2df2f95d4fbb9:/mutt/mailcap?ds=inline diff --git a/mutt/mailcap b/mutt/mailcap index 52c4d1c..57f8247 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,4 +1,12 @@ text/html; $XDG_CONFIG_HOME/mutt/mutt_bgrun qutebrowser %s; test=test -n "$DISPLAY"; nametemplate=%s.html text/html; w3m -I %{charset} -dump %s -T text/html -cols "$COLUMNS" -o display_link_number=1; copiousoutput; nametemplate=%s.html +text/calendar; $XDG_CONFIG_HOME/mutt/ical2txt; copiousoutput +# generate html from dmarc report, testing against *rmz.io* because all other tests were to 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 | xmllint --format - ; copiousoutput ; test=[[ '%s' == *rmz.io* ]] +application/zip; funzip | xmllint --format - ; copiousoutput ; test=[[ '%s' == *rmz.io* ]] application/*; $XDG_CONFIG_HOME/mutt/mutt_bgrun rifle -f F %s; image/*; rifle -f F %s;