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