summaryrefslogtreecommitdiffstats
path: root/mailcap
diff options
context:
space:
mode:
authorSebastian Reichel <sre@ring0.de>2015-12-06 10:02:39 +0100
committerSebastian Reichel <sre@ring0.de>2015-12-06 10:02:39 +0100
commit3be7fae21f06d44d96ef2f7a34ddf4deffab88a0 (patch)
treed680034ea8d03aa7685f2003d8f86723b497ed79 /mailcap
parentbfe8909ae5770a70e70f83dd7b7cdb16e6f9c6dc (diff)
downloadmutt-config-3be7fae21f06d44d96ef2f7a34ddf4deffab88a0.tar.bz2
add mailcap file
Diffstat (limited to 'mailcap')
-rw-r--r--mailcap32
1 files changed, 32 insertions, 0 deletions
diff --git a/mailcap b/mailcap
new file mode 100644
index 0000000..28a8071
--- /dev/null
+++ b/mailcap
@@ -0,0 +1,32 @@
+# html
+text/html; w3m -dump -I %{charset} -T text/html %s; needsterminal; copiousoutput
+
+# application/octet-stream
+#application/octet-stream; mutt.octet.filter %s; needsterminal; copiousoutput
+
+# pgp encrypted
+multipart/encrypted; showencrypted %{boundary} %s; \
+ test=test %{protocol} = application/pgp-encrypted; needsterminal
+multipart/signed; showsigned %{boundary} %s; \
+ test=test %{protocol} = application/pgp-signature; needsterminal
+
+#application/octet-stream; gpg -d < %s ; needsterminal; \
+# test=/usr/local/bin/is-pgp ; copiousoutput
+
+application/pgp; gpg < %s ; needsterminal; \
+ test=test %{encapsulation}=entity
+
+application/pgp-encrypted; gpg < %s ; needsterminal; \
+ test=test %{encapsulation}=entity ; copiousoutput
+
+application/x-tar; tar -tf %s ; copiousoutput
+
+# office
+application/pdf; evince %s
+application/msword; libreoffice %s
+
+# pictures
+image/png; gpicview %s
+image/jpeg; gpicview %s
+image/jpg; gpicview %s
+image/gif; gpicview %s