mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit 20c014db0955ae6f7075986c5e6c7c8b0d22039c
parent baba4c6a74f663efc662e3ffd1facba1989008c0
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Sun,  7 Oct 2018 15:43:44 -0400

better mailcap for html and media

Diffstat:
Aetc/htmlopen.sh | 10++++++++++
Metc/mailcap | 7++++---
2 files changed, 14 insertions(+), 3 deletions(-)

diff --git a/etc/htmlopen.sh b/etc/htmlopen.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +# Helps open an HTML file from mutt in a GUI browser without weird side effects. + +file=$(mktemp -u --suffix=.html) + +echo $file +cp "$1" "$file" + +setsid firefox "$file" & diff --git a/etc/mailcap b/etc/mailcap @@ -1,6 +1,7 @@ text/plain; vim %s ; -text/html; $BROWSER '%s' ; +text/html; ~/.config/mutt/etc/htmlopen.sh %s ; text/html; w3m -I %{charset} -T text/html; copiousoutput; image/*; ~/.config/mutt/etc/muttimage.sh %s ; copiousoutput -video/*; setsid nohup mpv --quiet %s & disown; copiousoutput -application/pdf; pdftotext '%s' -; copiousoutput; +video/*; setsid mpv --quiet %s &; copiousoutput +application/pdf; cp '%s' /tmp/doc.pdf && setsid zathura /tmp/doc.pdf &; copiousoutput; +application/pgp-encrypted; gpg -d '%s'; copiousoutput;