From cd507c92f617d4a8a3f7bb0b43e425491ef7184d Mon Sep 17 00:00:00 2001 From: luxagraf Date: Sun, 16 Feb 2020 13:23:56 -0500 Subject: initial commit of dotfiles --- .mutt/mailcap | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .mutt/mailcap (limited to '.mutt/mailcap') diff --git a/.mutt/mailcap b/.mutt/mailcap new file mode 100644 index 0000000..121566f --- /dev/null +++ b/.mutt/mailcap @@ -0,0 +1,34 @@ + +# MS Word documents +application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app' + +# Images +image/jpg; open %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 + +# Video +video/quicktime; ~/.mutt/view_attachment.sh %s mov + + +# PDFs +#application/pdf; ~/.mutt/view_attachment.sh %s pdf +# +application/pdf; { mv -T %s %s.mv \; ( zathura %s.mv \; rm %s.mv \; ) & } \; +#application/pdf; evince %s; disown -a +# HTML +# linux +# text/html; firefox-trunk %s & sleep 5; +# os x +#text/html; ~/.mutt/view_attachment.sh %s html +text/html; w3m -I %{charset} -T text/html; copiousoutput; + +#zip +application/zip; ~/.mutt/view_attachment.sh %s zip + +# Unidentified files +application/octet-stream; ~/.mutt/view_attachment.sh %s "-" + + -- cgit v1.2.3-70-g09d2