2 # System configuration file for Mutt
5 # Default list of header fields to weed when displaying.
6 # Ignore all lines by default...
9 # ... then allow these through.
10 unignore from: subject to cc date x-mailer x-url user-agent
12 # Display the fields in this order
13 hdr_order date from to cc subject
15 # imitate the old search-body function
16 macro index \eb "<search>~b " "search in message bodies"
18 # simulate the old url menu
19 macro index,pager,attach,compose \cb "\
20 <enter-command> set my_pipe_decode=\$pipe_decode pipe_decode<Enter>\
21 <pipe-message> urlview<Enter>\
22 <enter-command> set pipe_decode=\$my_pipe_decode; unset my_pipe_decode<Enter>" \
23 "call urlview to extract URLs out of a message"
25 # Show documentation when pressing F1
26 macro generic,pager <F1> "<shell-escape> less @docdir@/manual.txt<Enter>" "show Mutt documentation"
28 # show the incoming mailboxes list (just like "mutt -y") and back when pressing "y"
29 macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
32 # If Mutt is unable to determine your site's domain name correctly, you can
33 # set the default here.
35 # set hostname=cs.hmc.edu
37 # If your sendmail supports the -B8BITMIME flag, enable the following
41 # Use mime.types to look up handlers for application/octet-stream. Can
42 # be undone with unmime_lookup.
43 mime_lookup application/octet-stream
46 ## *** DEFAULT SETTINGS FOR THE ATTACHMENTS PATCH ***
50 ## Please see the manual (section "attachments") for detailed
51 ## documentation of the "attachments" command.
53 ## Removing a pattern from a list removes that pattern literally. It
54 ## does not remove any type matching the pattern.
56 ## attachments +A */.*
57 ## attachments +A image/jpeg
58 ## unattachments +A */.*
60 ## This leaves "attached" image/jpeg files on the allowed attachments
61 ## list. It does not remove all items, as you might expect, because the
62 ## second */.* is not a matching expression at this time.
64 ## Remember: "unattachments" only undoes what "attachments" has done!
65 ## It does not trigger any matching on actual messages.
67 ## Qualify any MIME part with an "attachment" disposition, EXCEPT for
68 ## text/x-vcard and application/pgp parts. (PGP parts are already known
69 ## to mutt, and can be searched for with ~g, ~G, and ~k.)
71 ## I've added x-pkcs7 to this, since it functions (for S/MIME)
72 ## analogously to PGP signature attachments. S/MIME isn't supported
73 ## in a stock mutt build, but we can still treat it specially here.
76 attachments -A text/x-vcard application/pgp.*
77 attachments -A application/x-pkcs7-.*
79 ## Discount all MIME parts with an "inline" disposition, unless they're
80 ## text/plain. (Why inline a text/plain part unless it's external to the
83 attachments +I text/plain
85 ## These two lines make Mutt qualify MIME containers. (So, for example,
86 ## a message/rfc822 forward will count as an attachment.) The first
87 ## line is unnecessary if you already have "attach-allow */.*", of
88 ## course. These are off by default! The MIME elements contained
89 ## within a message/* or multipart/* are still examined, even if the
90 ## containers themseves don't qualify.
92 #attachments +A message/.* multipart/.*
93 #attachments +I message/.* multipart/.*
95 ## You probably don't really care to know about deleted attachments.
96 attachments -A message/external-body
97 attachments -I message/external-body