summaryrefslogtreecommitdiffstats
path: root/mutt2022/mailcap
diff options
context:
space:
mode:
authorMatthew Lemon <chaffinach+git@protonmail.ch>2022-04-20 09:10:58 +0100
committerMatthew Lemon <chaffinach+git@protonmail.ch>2022-04-20 09:10:58 +0100
commitebaf821d8ac29fdf65a3deba327c6ecb16ced2c2 (patch)
tree62835c19b7a606185c4d26fe03b1e102c5999151 /mutt2022/mailcap
parenta7be781125b0b03f795e17475a4e3951334a616b (diff)
added some mbsync and mutt config
Diffstat (limited to 'mutt2022/mailcap')
-rw-r--r--mutt2022/mailcap24
1 files changed, 24 insertions, 0 deletions
diff --git a/mutt2022/mailcap b/mutt2022/mailcap
new file mode 100644
index 0000000..3657f08
--- /dev/null
+++ b/mutt2022/mailcap
@@ -0,0 +1,24 @@
+# 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 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 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 "-"