2 # System configuration file for Mutt
5 # default list of header fields to weed when displaying
7 ignore "from " received content- mime-version status x-status message-id
8 ignore sender references return-path lines
10 # imitate the old search-body function
11 macro index \eb "<search>~b " "search in message bodies"
13 # simulate the old url menu
14 macro index,pager,attach,compose \cb "\
15 <enter-command> set my_pipe_decode=\$pipe_decode pipe_decode<Enter>\
16 <pipe-message> urlview<Enter>\
17 <enter-command> set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<Enter>" \
18 "call urlview to extract URLs out of a message"
20 # Show documentation when pressing F1
21 macro generic,pager <F1> "<shell-escape> less @docdir@/manual.txt<Enter>" "show Mutt documentation"
23 # show the incoming mailboxes list (just like "mutt -y") and back when pressing "y"
24 macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
27 # If Mutt is unable to determine your site's domain name correctly, you can
28 # set the default here.
30 # set hostname=cs.hmc.edu
32 # If your sendmail supports the -B8BITMIME flag, enable the following
37 ## *** DEFAULT SETTINGS FOR THE ATTACHMENTS PATCH ***
41 ## Please see the manual (section "attachments") for detailed
42 ## documentation of the "attachments" command.
44 ## Removing a pattern from a list removes that pattern literally. It
45 ## does not remove any type matching the pattern.
47 ## attachments +A */.*
48 ## attachments +A image/jpeg
49 ## unattachments +A */.*
51 ## This leaves "attached" image/jpeg files on the allowed attachments
52 ## list. It does not remove all items, as you might expect, because the
53 ## second */.* is not a matching expression at this time.
55 ## Remember: "unattachments" only undoes what "attachments" has done!
56 ## It does not trigger any matching on actual messages.
58 ## Qualify any MIME part with an "attachment" disposition, EXCEPT for
59 ## text/x-vcard and application/pgp parts. (PGP parts are already known
60 ## to mutt, and can be searched for with ~g, ~G, and ~k.)
62 ## I've added x-pkcs7 to this, since it functions (for S/MIME)
63 ## analogously to PGP signature attachments. S/MIME isn't supported
64 ## in a stock mutt build, but we can still treat it specially here.
67 attachments -A text/x-vcard application/pgp.*
68 attachments -A application/x-pkcs7-.*
70 ## Discount all MIME parts with an "inline" disposition, unless they're
71 ## text/plain. (Why inline a text/plain part unless it's external to the
74 attachments +I text/plain
76 ## These two lines make Mutt qualify MIME containers. (So, for example,
77 ## a message/rfc822 forward will count as an attachment.) The first
78 ## line is unnecessary if you already have "attach-allow */.*", of
79 ## course. These are off by default! The MIME elements contained
80 ## within a message/* or multipart/* are still examined, even if the
81 ## containers themseves don't qualify.
83 #attachments +A message/.* multipart/.*
84 #attachments +I message/.* multipart/.*
86 ## You probably don't really care to know about deleted attachments.
87 attachments -A message/external-body
88 attachments -I message/external-body