From e4640e28c8449eea66392052bfab57ce0cdd27f9 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 6 Sep 2020 16:48:05 +0100 Subject: first commit --- mutt/mailcap | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 mutt/mailcap (limited to 'mutt/mailcap') diff --git a/mutt/mailcap b/mutt/mailcap new file mode 100644 index 0000000..9a568c0 --- /dev/null +++ b/mutt/mailcap @@ -0,0 +1,23 @@ +# 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 ristretto +image/jpeg; ~/.mutt/view_attachment.sh %s jpg ristretto +image/pjpeg; ~/.mutt/view_attachment.sh %s jpg gpicview +image/png; ~/.mutt/view_attachment.sh %s png gpicview +image/gif; ~/.mutt/view_attachment.sh %s gif gpicview + +# PDFs +application/pdf; ~/.mutt/view_attachment.sh %s pdf evince + +# 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 + +# Plain Text +text/plain; cat; copiousoutput; edit=$VISUAL %s + +# Unidentified files +application/octet-stream; ~/.mutt/view_attachment.sh %s "-" -- cgit v1.2.3