mutt stable branch with some hacks
1#
2# System configuration file for Mutt
3#
4
5# Default list of header fields to weed when displaying.
6# Ignore all lines by default...
7ignore *
8
9# ... then allow these through.
10unignore from: subject to cc date x-mailer x-url user-agent
11
12# Display the fields in this order
13hdr_order date from to cc subject
14
15# imitate the old search-body function
16macro index \eb "<search>~b " "search in message bodies"
17
18# simulate the old url menu
19macro 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"
24
25# Show documentation when pressing F1
26macro generic,pager <F1> "<shell-escape> less @docdir@/manual.txt<Enter>" "show Mutt documentation"
27
28# show the incoming mailboxes list (just like "mutt -y") and back when pressing "y"
29# note: these macros have been subsumed by the <browse-mailboxes> function.
30# macro index y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
31# macro pager y "<exit><change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
32bind browser y exit
33
34# Handler for gzip compressed mailboxes
35# open-hook '\.gz$' "gzip -cd '%f' > '%t'"
36# close-hook '\.gz$' "gzip -c '%t' > '%f'"
37# append-hook '\.gz$' "gzip -c '%t' >> '%f'"
38
39# If Mutt is unable to determine your site's domain name correctly, you can
40# set the default here.
41#
42# set hostname=cs.hmc.edu
43
44# If your sendmail supports the -B8BITMIME flag, enable the following
45#
46# set use_8bitmime
47
48# Use mime.types to look up handlers for application/octet-stream. Can
49# be undone with unmime_lookup.
50mime_lookup application/octet-stream
51
52##
53## *** DEFAULT SETTINGS FOR THE ATTACHMENTS PATCH ***
54##
55
56##
57## Please see the manual (section "attachments") for detailed
58## documentation of the "attachments" command.
59##
60## Removing a pattern from a list removes that pattern literally. It
61## does not remove any type matching the pattern.
62##
63## attachments +A */.*
64## attachments +A image/jpeg
65## unattachments +A */.*
66##
67## This leaves "attached" image/jpeg files on the allowed attachments
68## list. It does not remove all items, as you might expect, because the
69## second */.* is not a matching expression at this time.
70##
71## Remember: "unattachments" only undoes what "attachments" has done!
72## It does not trigger any matching on actual messages.
73
74## Qualify any MIME part with an "attachment" disposition, EXCEPT for
75## text/x-vcard and application/pgp parts. (PGP parts are already known
76## to mutt, and can be searched for with ~g, ~G, and ~k.)
77##
78## I've added x-pkcs7 to this, since it functions (for S/MIME)
79## analogously to PGP signature attachments. S/MIME isn't supported
80## in a stock mutt build, but we can still treat it specially here.
81##
82attachments +A */.*
83attachments -A text/x-vcard application/pgp.*
84attachments -A application/x-pkcs7-.*
85
86## Discount all MIME parts with an "inline" disposition, unless they're
87## text/plain. (Why inline a text/plain part unless it's external to the
88## message flow?)
89##
90attachments +I text/plain
91
92## These two lines make Mutt qualify MIME containers. (So, for example,
93## a message/rfc822 forward will count as an attachment.) The first
94## line is unnecessary if you already have "attach-allow */.*", of
95## course. These are off by default! The MIME elements contained
96## within a message/* or multipart/* are still examined, even if the
97## containers themselves don't qualify.
98##
99#attachments +A message/.* multipart/.*
100#attachments +I message/.* multipart/.*
101
102## You probably don't really care to know about deleted attachments.
103attachments -A message/external-body
104attachments -I message/external-body
105
106##
107## More settings
108##
109