diff options
Diffstat (limited to '.mutt/mailcap')
-rw-r--r-- | .mutt/mailcap | 34 |
1 files changed, 34 insertions, 0 deletions
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 "-" + + |