dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit b5c24064e3303e2af7b787f881fbe983b021966c
parent c69282ebdd407cc7d59dcd66d7f93d605648022f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date:   Tue,  8 May 2018 10:27:46 -0400

Fix browser view of HTML attachments

Diffstat:
Mlinks/.mailcap | 31+++++++++++++++----------------
1 file changed, 15 insertions(+), 16 deletions(-)

diff --git a/links/.mailcap b/links/.mailcap @@ -1,27 +1,26 @@ # HTML -#text/html; open '%s.html' &; test=test -n "$DISPLAY"; needsterminal; -text/html; ~/.mutt/view_attachment.sh '%s' html &; test=test -n "$DISPLAY"; needsterminal; -text/html; w3m -I %{charset} -T text/html; copiousoutput; +text/html; cp %s ~/.mutt/tmp.html && open ~/.mutt/tmp.html && sleep 1 && rm ~/.mutt/tmp.html; test=test -n "$DISPLAY" +text/html; w3m -I %{charset} -T text/html; copiousoutput; needsterminal -text/plain; less; copiousoutput; +text/plain; cat %s; copiousoutput # MS Word documents -#application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app' -application/msword; ~/.mutt/view_attachment.sh %s "-" -application/vnd.openxmlformats-officedocument.wordprocessingml.document; ~/.mutt/view_attachment.sh %s "-" +#application/msword; ~/.mutt/view_attachment.sh '%s' "-" '/Applications/TextEdit.app' +application/msword; ~/.mutt/view_attachment.sh '%s' "-" +application/vnd.openxmlformats-officedocument.wordprocessingml.document; ~/.mutt/view_attachment.sh '%s' "-" # Images -image/jpg; ~/.mutt/view_attachment.sh %s jpg -image/jpeg; ~/.mutt/view_attachment.sh %s jpg -image/pjpeg; ~/.mutt/view_attachment.sh %s jpg -image/png; ~/.mutt/view_attachment.sh %s png -image/gif; ~/.mutt/view_attachment.sh %s gif +image/jpg; ~/.mutt/view_attachment.sh '%s' jpg +image/jpeg; ~/.mutt/view_attachment.sh '%s' jpg +image/pjpeg; ~/.mutt/view_attachment.sh '%s' jpg +image/png; ~/.mutt/view_attachment.sh '%s' png +image/gif; ~/.mutt/view_attachment.sh '%s' gif # PDFs -application/pdf; ~/.mutt/view_attachment.sh %s pdf +application/pdf; ~/.mutt/view_attachment.sh '%s' pdf # Unidentified files -application/octet-stream; ~/.mutt/view_attachment.sh %s "-" +application/octet-stream; ~/.mutt/view_attachment.sh '%s' "-" -video/mp4; ~/.mutt/view_attachment.sh %s "-" -video/avi; ~/.mutt/view_attachment.sh %s "-" +video/mp4; ~/.mutt/view_attachment.sh '%s' "-" +video/avi; ~/.mutt/view_attachment.sh '%s' "-"