summaryrefslogtreecommitdiffstats
path: root/mutt/mailcap
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@x220.lan>2020-09-06 16:48:05 +0100
committerMatthew Lemon <lemon@x220.lan>2020-09-06 16:48:05 +0100
commite4640e28c8449eea66392052bfab57ce0cdd27f9 (patch)
tree2be81b55bc37da60599f4e6d434e74a57694962e /mutt/mailcap
first commit
Diffstat (limited to '')
-rw-r--r--mutt/mailcap23
1 files changed, 23 insertions, 0 deletions
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 "-"