diff options
author | Matthew Lemon <matt@matthewlemon.com> | 2022-10-05 16:33:10 +0100 |
---|---|---|
committer | Matthew Lemon <matt@matthewlemon.com> | 2022-10-05 16:33:10 +0100 |
commit | 9fff448654308b1e1b3d1129c0255544f56c25cc (patch) | |
tree | eda78717611d7a6b2204ba8e9f73af90e69ae90b /mutt/mailcap |
initial
Diffstat (limited to '')
-rw-r--r-- | mutt/mailcap | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/mutt/mailcap b/mutt/mailcap new file mode 100644 index 0000000..9f40b57 --- /dev/null +++ b/mutt/mailcap @@ -0,0 +1,27 @@ +# MS Word documents +# DONT HAVE A SOLUTION YET: application/msword; ~/.mutt/view_attachment.sh %s "-" '/Applications/TextEdit.app' + +# Images +image/jpg; ~/.mutt/view_attachment.sh %s jpg feh +image/jpeg; ~/.mutt/view_attachment.sh %s jpg feh +image/pjpeg; ~/.mutt/view_attachment.sh %s jpg feh +image/png; ~/.mutt/view_attachment.sh %s png feh +image/gif; ~/.mutt/view_attachment.sh %s gif feh +# +# patches +text/x-patch; vimdiff '%s'; needsterminal + +# PDFs +application/pdf; ~/.mutt/view_attachment.sh %s pdf zathura + +# HTML +#text/html; ~/.mutt/view_attachment.sh %s html w3m # try different +# text/html; w3m %s; nametemplate=%s.html +# text/html; w3m -dump %s; nametemplate=%s.html; copiousoutput +text/html; lynx -dump %s; nametemplate=%s.html; copiousoutput + +# Plain Text +text/plain; cat; copiousoutput; edit=$VISUAL %s + +# Unidentified files +application/octet-stream; ~/.mutt/view_attachment.sh %s "-" |