From: Samir Benmendil Date: Sat, 11 Mar 2023 18:07:02 +0000 (+0000) Subject: mutt: make dmarc xsl more plaintext friendly X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/830ef01248ce26f54f482e3dd6585fc217caf756?ds=inline mutt: make dmarc xsl more plaintext friendly It still requires parsing through w3m but it quite a bit more readable. --- diff --git a/mutt/dmarc.xsl b/mutt/dmarc.xsl index b942425..b6f693f 100644 --- a/mutt/dmarc.xsl +++ b/mutt/dmarc.xsl @@ -36,12 +36,15 @@ margin: 1em; padding: 4pt; background-color: #ffeeaa; - border: 3pt solid #776633; + border: 3pt solid #776633; + } + table.report_metadata th { + text-align: right; } td, th { margin: 2pt; padding: 2pt; - border: 1pt solid #776633; + border: 1pt solid #776633; } .pass { background-color: #11bb00; @@ -77,9 +80,10 @@

- -
- + + + +

@@ -87,15 +91,13 @@ Relaying IP + + + + + + + + + + + + + + + @@ -181,18 +204,28 @@ - Id: - - ; - begin: - - - - ; - end: - - - + + + + + + + + + + + +
diff --git a/mutt/mailcap b/mutt/mailcap index 7faa4b8..e7ddad0 100644 --- a/mutt/mailcap +++ b/mutt/mailcap @@ -1,7 +1,7 @@ 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 +# 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 ;\
- message count + msg count - reason and disposition + reason/dispo - From header -
- (opt. envelope) + From: hdr
SPF @@ -148,21 +150,42 @@ - Domain: - - ; - DKIM: - - ; - SPF: - - ; - policy published: - - - - - +
+ Domain: + + +
+ DKIM: + + +
+ SPF: + + +
+ policy published: + + + + + + +
Id: + +
begin: + + + +
end: + + + +