X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/172cfbb4b15794f9dd12a4531e6ba6b8f0edbb2a..a59aa3f7d15dae57e2d066e47af3556c46d9dac4:/mutt/mailcap diff --git a/mutt/mailcap b/mutt/mailcap index b5c4dee..e64064d 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,4 +1,12 @@ -text/html; ~/.mutt/mutt_bgrun qutebrowser %s; test=test -n "$DISPLAY"; nametemplate=%s.html +text/html; $XDG_CONFIG_HOME/mutt/mutt_bgrun qutebrowser --temp-basedir %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 -application/*; ~/.mutt/mutt_bgrun rifle -f F %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;