From: Samir Benmendil Date: Tue, 31 Jan 2023 23:43:20 +0000 (+0000) Subject: mutt: render dmarc reports using w3m X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/cb21d3b96c1dc285336f0eb49a099707028d42d4?ds=inline mutt: render dmarc reports using w3m This needs a bit more work, maybe even a different xsl for rendering text directly. --- diff --git a/mutt/dmarc.xsl b/mutt/dmarc.xsl index 25bd7df..b942425 100644 --- a/mutt/dmarc.xsl +++ b/mutt/dmarc.xsl @@ -308,6 +308,8 @@ + +

@@ -318,6 +320,8 @@ + +

diff --git a/mutt/mailcap b/mutt/mailcap index 57f8247..7faa4b8 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -6,7 +6,7 @@ application/gzip; zcat | xsltproc $XDG_CONFIG_HOME/mutt/dmarc.xsl - > /tmp/dmar 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/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; diff --git a/mutt/muttrc b/mutt/muttrc index 8cb3f59..0c86fa4 100644 --- a/mutt/muttrc +++ b/mutt/muttrc @@ -78,6 +78,7 @@ hdr_order from: to: cc: date: subject: x-clacks-overhead: set mailcap_path = $my_config_dir/mailcap auto_view text/html # view html automatically auto_view text/calendar # view ical automatically +auto_view application/gzip application/zip # for dmarc reports alternative_order text/calendar text/plain text/enriched text/html # view ical first, html last # IMAP: mbsync