1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
|
# -*-muttrc-*-
#
# Mutt configuration file of Thomas Roessler <roessler@does-not-exist.org>
#
# Use and distribute freely.
#
# Note: This file doesn't contain any personal customization, i.e.,
# using it won't make you send messages with my name in the header.
#
# Things to change: You probably want to change the "priv.rc" source
# command in the end of this file. Also, it's likely you want to have
# a look at the the $editor and $tmpdir variables.
#
#
# MIME settings
#
# auto_view application/ms-tnef text/x-vcard
# auto_view application/x-chess application/x-lotus-notes
# auto_view text/html application/x-gzip application/x-gunzip
# auto_view application/rtf application/x-rath
# auto_view application/msword
auto_view text/html
mime_lookup application/octet-stream
# alternative_order application/pgp text/html text/enriched text/plain
alternative_order text/plain text/html
#
# Key bindings
#
#
# A few of these may resemble Pine. ups.
#
bind alias " " tag-entry
bind alias \n select-entry
bind alias \r select-entry
bind attach i exit
bind attach n next-entry
bind attach p previous-entry
bind attach " " select-entry
bind attach y print-entry
bind browser <end> last-entry
bind browser <home> first-entry
bind editor "\e<backspace>" kill-word
bind editor "\e<delete>" kill-word
bind editor "<backtab>" complete-query
bind editor "\eq" complete-query
bind editor "\Ct" transpose-chars
bind generic "\CV" next-page
bind generic "\Ca" first-entry
bind generic "\Ce" last-entry
bind generic "\eV" previous-page
bind generic "\ev" previous-page
bind generic + tag-entry
bind generic ^ first-entry
bind generic a tag-prefix
bind generic $ last-entry
bind generic q exit
bind index ";" limit
bind index "\Ce" last-entry # override edit-type
bind index "\eV" previous-page # override collapse-something
bind index "\e<" collapse-thread
bind index "\eq" query
bind index $ last-entry
bind index * flag-message
bind index <delete> delete-message
bind index <end> last-entry
bind index <home> first-entry
bind index J next-entry
bind index K previous-entry
bind index Q quit
bind index R group-reply
bind index \em recall-message
bind index a tag-prefix
bind index m mail
bind index p previous-entry
bind index t create-alias
bind index x sync-mailbox
bind index y print-message
bind index n next-entry
bind index "\ev" previous-page
bind pager "\Cn" next-line
bind pager "\Cp" previous-line
bind pager + tag-message
bind pager * flag-message
bind pager <delete> delete-message
bind pager <down> next-line
bind pager <end> bottom
bind pager <home> top
bind pager <up> previous-line
bind pager G group-reply
bind pager R group-reply
bind pager \em recall-message
bind pager t display-toggle-weed # like slrn
bind pager y print-message
bind query i exit
# make it feel like emacs
macro generic "\ex" ":exec "
macro pager "\ex" ":exec "
macro generic "\eX" "\ex"
macro pager "\eX" "\ex"
macro index "~" ";~"
# macro index "%" ";%"
# Thread tagging
bind index "\et" tag-subthread
bind index "\eT" tag-thread
# for majordomo list owner and moderator jobs
macro index "\ea" ":set nopipe_decode wait_key\n|approve\n:set nowait_key\n"
macro pager "\ea" ":set nopipe_decode wait_key\n|approve\n:set nowait_key\n"
# emulate the old URL-browser key bindings.
macro pager "\Cb" "| urlview -\n"
macro index "\Cb" "| urlview -\n"
# permit limiting from the pager.
macro pager "~" "<exit><limit>~"
macro pager ";" "<exit><limit>"
# emulate the old POP-feature bindings
macro index G "!fetchmail\n"
macro pager G "!fetchmail\n"
# razor-report: Report spam.
# macro index S ":set nopipe_decode nowait_key\n|razor-report > /dev/null 2> /dev/null\ns+junk\n"
# macro pager S ":set nopipe_decode nowait_key\n|razor-report > /dev/null 2> /dev/null\ns+junk\n"
macro index S "s+junk\n"
macro pager S "s+junk\n"
#
# Colors
#
# This is a tiny hack, so I can get different
# color schemes on the console and under X11.
source ~/.mutt/colors.`if [ "$TERM" = "linux" ] ; then echo linux ; else echo default ; fi`
mono index bold ~F
# mono body bold '\*[^*]+\*'
# mono body underline '_[^_]+_'
#
# The header weed list
#
ignore delivered-to
ignore content- errors-to in-reply-to mime-version
ignore lines precedence status
ignore nntp-posting-host path old-return-path received references
ignore priority >received >>received
ignore resent- return-path xref path
ignore x400 importance sensitivity autoforward original-encoded-information
ignore x- thread-
ignore DomainKey-Signature mail-followup-to
ignore list- comments posted-to approved-by
unignore x-spam-level x-url x-mailer list-id x-no-spam x-archived-at
unignore x-diagnostic
hdr_order from to cc date subject reply-to mail-followup-to list-id
#
# Various settings
#
set abort_nosubject=no # Let me send messages with an empty subject
set abort_unmodified=no # Let me send empty messages
set alias_file=~/.mutt/aliases # Where to store aliases
unset allow_8bit # Produce correct MIME
unset arrow_cursor # Use the bar cursor
set askcc # Ask me about CCs
unset bounce_delivered # Don't include Delivered-to with bounces
# set charset=iso-8859-1 # The local character set
set send_charset="us-ascii:iso-8859-1:iso-8859-15:iso-8859-2:utf-8"
set confirmcreate # Ask me about creating new files
unset confirmappend # Don't ask me about appending to files
set delete=yes # Don't ask me whether or not I meant to delete messages
# set display_filter="tr '\240\204\223\226' ' \"\"-'" # fix some funny characters
set edit_hdrs # I want to edit the headers.
set editor="/usr/bin/jed %s -f 'mail_mode();'"
# Invoke jed with mail_mode. This may
# or may not work for you.
set noenvelope_from # set messages' envelope-from header.
set fcc_clear # Store local copies of messages in the clear.
set folder=~/Mail # Where my mail folders go
set followup_to # Create Mail-Followup-To headers.
unset force_name # Don't create save folders which don't exist.
set forward_decode # Decode messages when forwarding.
set forward_decrypt # Decrypt messages when forwarding.
set nohelp # No help line.
set include=yes # Always include a copy when replying.
set mark_old # Distinguish between seen (but unread) and new messages
set mbox=+mbox # The (unused) mbox file.
unset metoo # Remove me from CC headers.
set mime_fwd=ask-no # Ask me whether or not to create a MIME-encapsulated forward
set move=no # Don't use mbox
set pager_stop # Don't fall through to the next message in the pager
set pager_index_lines=0 # The pager index is ugly.
set pgp_replyencrypt # Encrypt when replying to encrypted messages.
set pgp_replysignencrypted # Sign when replying to encrypted messages.
set pgp_show_unusable="no" # Don't display unusable keys.
set pgp_sort_keys="keyid" # Sort keys by key ID
set pgp_replysign # Sign when replying to signed messages.
set pgp_timeout=3600 # Forget the PGP passphrase after an hour.
set pipe_decode # Decode messages I pipe to commands, typically to patch(1).
set postponed=~/.mutt/postponed # Where to put postponed messages
set print=ask-no # Don't waste paper
set print_cmd="enscript -2Gr -Email" # Two columns, landscape, fancy header.
set print_split=yes # Invoke enscript once per message
set quit=yes # Don't ask me whether or not I want to quit.
set quote_regexp="^ *[a-zA-Z]*[>|][>:|]*" # Recognize quotes in the pager.
set read_inc=50 # Progress indicator when reading folders.
set recall=ask-no # When I say "compose", ask me whether I want to continue
# composing a postponed message.
set record="+archive/now" # Put copies of most outgoing messages to ~/Mail/archive/now
set reply_to=ask-yes # Ask me whether I want to honor users' reply-to headers.
set reverse_alias # Use aliases to display real names on the index.
set save_name # Save copies by name. Together with $record and $save_name,
# this means that when a folder exists, copies of outgoing
# messages are written to ~/Mail/<name>, otherwise they go to
# ~/Mail/archive/now
set signature=~/.signature # Silly signature
set sig_dashes # Add dashes above my signature
set smart_wrap # Try to be smart when wrapping around lines in the pager
set sort=threads # sort by threads,
set sort_aux=date # then by date
unset strict_threads # don't be strict about threads
# set suspend=no # Don't suspend - I usually run mutt like this: "xterm -e mutt"
set tilde # Indicate empty lines in the pager.
set tmpdir=~/.tmp # Temporary files aren't stored in public places.
set to_chars=" +TCF " # Don't tag list mail in the index
unset use_domain # Don't append a domain to addresses.
set write_inc=50 # Progress indicator when writing folders.
set query_command="lbdb2q.pl %s" # Use the Little Brother's Database with the external
# query feature.
set sendmail_wait=-1 # Don't put sendmail into the background.
set encode_from # "From " in the beginning of a line triggers quoted-printable
set nowait_key # Return immediately from external programs
set forw_format="[fwd] %s (from: %a)" # A different subject for forwarded messages
set nobeep # Shut up. ;-)
set reply_regexp="^((re([\\[0-9\\]+])*|aw):[ \t]*)+[ \t]*" # A regular expression to detect replies
set header # Include the message header when replying.
set ignore_list_reply_to # Ignore Reply-To headers pointing to mailing lists.
set norfc2047_parameters # Sometimes, I get mails which use a bogus encoding for
# MIME parameters. Setting this shouldn't harm.
# (OK, she doesn't use Notes any more, so I can unset this. ;-)
# set text_flowed # Generate text/plain; format=flowed
# unset use_ipv6 # Don't try to use IPv6 - it doesn't work here.
set keep_flagged # don't move flagged messages to mbox
set hide_missing=yes # Don't show how many messages are missing in a thread structure
set status_format="-%r-+(%v) %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]----%>-(%P)---"
set compose_format="--+(%v) Compose [Approx. msg size: %l Atts: %a]%>-"
set pager_format="-%Z- %C/%m: %.20n %> %s"
set smileys="^$"
set ispell=iaspell
set markers=no # Don't mark wrapped lines
set wrapmargin=4 # Leave a margin in the pager
# PGP command configuration
# source ~/.mutt/pgp2.rc
source ~/.mutt/gpg.rc
set pgp_getkeys_command=""
# source ~/.mutt/smime.rc
# source non-public stuff, (hooks, alternates, ...)
source ~/.mutt/priv.rc
# source aliases
# source ~/.mutt/aliases-coruscant
source ~/.mutt/aliases
|