aboutsummaryrefslogtreecommitdiffstats
path: root/.mutt/attachments
diff options
context:
space:
mode:
authorWeitian LI <liweitianux@gmail.com>2015-01-19 10:21:08 +0800
committerWeitian LI <liweitianux@gmail.com>2015-01-19 10:21:08 +0800
commit0b08340aecac94e17356431894c9635d9bc958d2 (patch)
tree2dfd7f2b0a098b28fbbf2bda4d41e76475625c04 /.mutt/attachments
parent6a3885395e9bb793e22694fd1a210078cef69dfc (diff)
downloaddotfiles-0b08340aecac94e17356431894c9635d9bc958d2.tar.bz2
Updated various configs.
Diffstat (limited to '.mutt/attachments')
-rw-r--r--.mutt/attachments65
1 files changed, 65 insertions, 0 deletions
diff --git a/.mutt/attachments b/.mutt/attachments
new file mode 100644
index 0000000..1c8535e
--- /dev/null
+++ b/.mutt/attachments
@@ -0,0 +1,65 @@
+# $Id$
+#
+# mutt attchment searching and counting configuration
+#
+# LIweitiaNux
+# February 8, 2012
+#
+# Ref: file:///usr/local/share/doc/mutt/html/mimesupport.html
+#
+
+# Removing a pattern from a list removes that pattern literally. It
+# does not remove any type matching the pattern.
+#
+# attachments +A */.*
+# attachments +A image/jpeg
+# unattachments +A */.*
+#
+# This leaves "attached" image/jpeg files on the allowed attachments
+# list. It does not remove all items, as you might expect, because the
+# second */.* is not a matching expression at this time.
+#
+# Remember: "unattachments" only undoes what "attachments" has done!
+# It does not trigger any matching on actual messages.
+
+# Qualify any MIME part with an "attachment" disposition, EXCEPT for
+# text/x-vcard and application/pgp parts. (PGP parts are already known
+# to mutt, and can be searched for with ~g, ~G, and ~k.)
+#
+# I've added x-pkcs7 to this, since it functions (for S/MIME)
+# analogously to PGP signature attachments. S/MIME isn't supported
+# in a stock mutt build, but we can still treat it specially here.
+#
+
+attachments +A */.*
+attachments -A text/x-vcard application/pgp.*
+attachments -A application/x-pkcs7-.*
+
+
+# Discount all MIME parts with an "inline" disposition, unless they're
+# text/plain. (Why inline a text/plain part unless it's external to the
+# message flow?)
+
+attachments +I text/plain
+
+
+# These two lines make Mutt qualify MIME containers. (So, for example,
+# a message/rfc822 forward will count as an attachment.) The first
+# line is unnecessary if you already have "attach-allow */.*", of
+# course. These are off by default! The MIME elements contained
+# within a message/* or multipart/* are still examined, even if the
+# containers themselves don't qualify.
+
+#attachments +A message/.* multipart/.*
+#attachments +I message/.* multipart/.*
+
+
+## You probably don't really care to know about deleted attachments.
+attachments -A message/external-body
+attachments -I message/external-body
+
+## Then entering the command “attachments ?” as a command will list
+## your current settings in Muttrc format, so that it can be pasted
+## elsewhere.
+
+# vim: filetype=muttrc