-
Notifications
You must be signed in to change notification settings - Fork 0
/
.muttrc
414 lines (354 loc) · 17.2 KB
/
.muttrc
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
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
# Aliases give you a basic addressbook. Use "A" to add a message's sender to
# the aliases file, so you don't have to remember their address.
# File to use for saving new aliases
set alias_file=~/.mutt.aliases
# source /etc/Muttrc.gpg.dist
#bind index B bounce-message
set mbox_type=mbox
set imap_user="[email protected]"
source ~/.glagassepass.muttrc
# Allow mutt to open new IMAP connection automatically
unset imap_passive
# Keep IMAP connection alive by polling intermittently (time in seconds)
set imap_keepalive = 300
set smtp_url="smtp://[email protected]@glennl.mail.pairserver.com:587"
set header_cache="$HOME/.mutt/headers/cache/"
set message_cachedir="$HOME/.mutt/bodies/cache/"
set certificate_file="$HOME/.mutt_certificates"
set imap_check_subscribed
macro index M "<tag-pattern>.*\r<tag-prefix><clear-flag>N<untag-pattern>.*\r" "Mark all messages in this mailbox as read"
# File to search for aliases in
#source $HOME/.mutt.aliases
# File to search for pgp public keys
#source $HOME/.mutt.autoenc
# Boolean Variables:
# set foo
# or unset foo
# or toggle foo
# or reset foo (reset to compile time black)
# or set nofoo or set invfoo (inverts actual value)
unset allow_8bit # use QP or Base64 if unset.
unset arrow_cursor # "->" as cursor (faster on slow networks).
unset ascii_chars # Use ASCII chars for threading arrows.
unset askbcc # ask to fill out Bcc on mesg-send?
unset askcc # ask to fill out CC on mesg-send?
set attach_split # handle every single attachment instead of concat
unset autoedit # start editor without asking for to, subject,...
set auto_tag # if something is tagged, run commands on tagged msgs.
unset beep # beep on certain user errors and other errors
unset beep_new # beep on new mail
unset bounce_delivered # unset => remove Delivered-To: when bouncing.
unset check_new # search for new messages in maildir/MH folders.
unset collapse_unread # don't collapse threads with unread mails
unset confirmappend # prompt for confirm when appending message to ex. mbox
set confirmcreate # prompt for confirm when saving to non existing mbox
set copy # always keep a copy of my mails
set delete_untag # untag messages when marking them for deletion.
set edit_headers # put headers in editor when composing messages
set encode_from # use Quoted-Printable, if ^From in a mail.
set fast_reply # do not ask for to, subject,... when replying.
set fcc_attach # store attachments too when doing a Fcc
set fcc_clear # FCCs will be stored unencrypted and unsigned
unset followup_to # Add Mail-Followup-To header.
unset force_name # outgoing mail to be saved in folder of "login name"
set forward_decode # decode messages when forwarding without MIME
unset forward_decrypt # decrypt PGP message, when mime_forward and !mime_fw_d
unset forward_quote # quote forwarded message, if not $mime_forward
set hdrs # nohdrs implies not to write my_hdr into mail.
unset header # quote full header on reply
set help # show help in first line of the display
set hidden_host # when set, skip the host name part of hostname
set honor_followup_to # Mail-Followup-To header is honored?
unset ignore_list_reply_to # ignore Reply-To pointing back to mailinglist
set implicit_autoview # use autoview, if a "copiousoutput" is in mailcap.
set mailcap_sanitize # remove ugly chars from mailcap % expands.
unset mark_old # mark new articles as old, when leaving mbox
unset markers # put a '+' at the beginning of wrapped lines.
set menu_scroll # scroll on last line of menu (set) or do a nextpage?
unset meta_key # Don't interpret Alt-x as ESC x
unset metoo # should we keep ourselves in group replies?
set mh_purge # remove messages marked as deleted from MH folders.
unset mime_forward_decode # decode messages when forwarding with MIME
set pager_stop # Don't jump to next message at end of message.
unset pgp_replysign # always sign reply to signed message
unset pgp_show_unusable # Show non-usable keys on the PGP key selection menu?
set pipe_decode # Weed headers and PGP-decode message before piping
set pipe_split # split tagged messages (or don't) when using "|"
unset prompt_after # display prompt after exit from pager
unset read_only # folders not read only
unset reply_self # if unset, a reply to yourself implies reply to other
set resolve # go to next undeleted message after modifying actual
unset reverse_alias # use realname from reverse alias lookup
unset reverse_name # Set "From" to address, where replied mail was sent to
unset save_address # Use full mail adress (with domain) as black folder.
set save_empty # remove mailbox when last message is removed.
unset save_name # Fcc, if ~/Mail/<to> exists.
unset score # don't do scoring
unset sig_dashes # Don't prepend "-- \n" to the signature
set smart_wrap # wrap long lines at word boundary.
set sort_re # set: only put a child in a thread, if starts with Re:
set status_on_top # status line at the top or button?
unset strict_threads # thread only by In-Reply-To/References or by Subject.
unset suspend # Ctrl-Z is able to suspend mutt.
set thorough_search # MIME decode before searching.
set tilde # Internal Pager: ~~~~ at and of message?
unset uncollapse_jump # don't move pointer, when uncollapsing thread
unset use_8bitmime # run sendmail 8.8.x with -B8BITMIME to enable 8bit
unset use_domain # add $domain to all addresses without @host
unset use_from # generate a "From:" header (unless my_hdr From:)
unset user_agent # Create User-Agent: Mutt/<Version> header.
unset wait_key # Only "press a key" if return value non-zero
set wrap_search # Wrap search to top/bottom.
unset write_bcc # send Bcc: line to $sendmail
set print_command="lp -s"
set mailcap_path="$HOME/.mailcap"
# Quadoptions
# set foo=yes
# or set foo=ask-yes
# or set foo=no
# or set foo=ask-no
# or reset foo (reset to compile time black)
mime_lookup application/octet-stream
set envelope_from=yes
set abort_nosubject=no # Abort, if message has no subject.
set abort_unmodified=yes # Abort, if message wasn't edited.
set delete=yes # ask for confirmation when deleting messages?
set honor_followup_to=yes # Ask whether to honor Mail-Followup-To header
set include=yes # quote message, when replying
set mime_forward=yes # use MIME when forwarding mails.
set move=no # Move mail-spool to $mbox?
set postpone=ask-yes # ask for postponing when doing an Abort.
set print=ask-yes # ask whether you really want to print.
set quit=yes # ask before quitting.
set recall=yes # ask for using postponed message.
set reply_to=yes # Use or ignore Reply-To.
set attribution="* %n (%a) wrote:"
set charset="iso-8859-1"
set date_format="!%a %b %d, %Y at %I:%M:%S%p %Z"
#set default_hook="~f %s | ~t %s"
set editor="/usr/bin/vim '+/^$' -c 'set ai et list tw=72 nowritebackup notitle noautoindent'"
set folder="imaps://glennl.mail.pairserver.com"
set history=50
set indent_str="> "
set mail_check=60
set timeout=600
set pager_context=3
set pager_index_lines=9 # number of lines to see from the index
set pgp_timeout=1000 # number of seconds to cache passphrase
set postponed="=Drafts"
set quote_regexp="^( {0,4}-?[>|:]| {0,4}[a-z0-9]+[>|]+)+"
set read_inc=100
set realname="Glenn Lagasse"
set record="=Sent"
set reply_regexp="^((re|RE|Re|r e|aw):[ \t]*)*"
set signature="$HOME/.signature"
set simple_search="~f %s | ~C %s | ~s %s" # black pattern (Fr|To|Cc|Su)
set sort_alias=alias
set sort_browser=alpha
set spoolfile="=INBOX"
set mask="."
set status_chars="-*%A" # status of mbox (unchanged, changed, readonly, attach)
set tmpdir="/tmp"
set to_chars=" +TCF" #black (Not to me, To me, CC me, From me)
set write_inc=10 # number - display increment count for every n-th mail
set net_inc=5
## ======================================================================
## Format Strings:
## ======================================================================
## forward_format - format the text used in the format attribution
set forward_format="(forw) [%a: %s]"
set index_format="%4C %Z %[!%m/%d] %[%H:%M] %-17.17F (%3c) %s"
set pager_format="%S [%C] %n (%c) %s"
set folder_format="%F %-8.8u %-8.8g %d %8s %N %f"
set status_format="-%r-Mutt: %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?]---(%s/%S)-%>-(%P)---"
## ========================================================================
## AUTO_VIEW - tell mutt which "content types" to view with
## the command given in the $HOME/.mailcap file.
## ========================================================================
auto_view text/html text/enriched application/x-gunzip application/postscript image/gif application/x-tar-gz application/pgp-signature text/x-vcard text/x-sun-c-file text/x-sun-h-file
## ========================================================================
## BIND - bind commands to keys.
## ========================================================================
## ========================
## Bindings for attach menu
## ========================
bind attach ' ' select-entry
## ============================
## Bindings for index and pager
## ============================
## Jumping to the next mail that is still unread.
bind index \t next-new
bind pager \t next-new
bind index ' ' next-unread
bind pager ' ' next-unread
bind index V show-version
bind pager V show-version
bind pager ] next-page
bind pager [ previous-page
bind pager <home> top
bind pager <end> bottom
bind pager ,cp check-traditional-pgp
## ==============================================
## Bindings for editing and reloading the .muttrc
## ==============================================
macro generic ,vu ":source ~/.muttrc\r"
## ======================
## Bindings for index
## ======================
bind index P recall-message
bind index s save-message
bind browser x check-new
bind index <pagedown> next-page
bind index <pageup> previous-page
bind index x sync-mailbox
bind index a tag-prefix
bind index \; tag-entry
macro index \cb "|/usr/local/bin/urlview\n"
macro index ,l "l~N ! ~p\n"
macro index ,n "l~N ~r =0d\n"
# ======================================
# Quickly change to my favorite folders:
# ======================================
macro index "\\S" "c=Sent\r"
macro index I "c!\n" "Go to Inbox"
macro pager "\\S" "c=Sent\r"
macro pager I "c!\n" "Go to Inbox"
# ===========================
# Bindings for pager
# ===========================
bind pager / search
bind pager L list-reply
bind pager b bounce-message
bind pager f forward-message
bind pager m mail
bind pager g group-reply
bind pager j next-line
bind pager k previous-line
bind pager : enter-command
bind pager p previous-undeleted
bind pager n next-undeleted
bind pager \n next-unread
bind compose <return> send-message
bind compose <return> send-message
bind pager ,p print-message
macro pager J "!gpg --keyserver pgp.mit.edu --recv-key " "Get PGP Key"
macro pager K "!gpg --lsign-key " "Sign PGP Key"
macro pager "i" "<sync-mailbox><change-folder>?<toggle-mailboxes>"
macro index "i" "<sync-mailbox><change-folder>?<toggle-mailboxes>"
## =====================================
## Tom's cursor movement system [tm] ;-)
## =====================================
bind pager <up> previous-line
bind pager <down> next-line
bind pager <left> exit
bind pager <right> view-attachments
bind attach <left> exit
bind attach <right> view-attach
#bind index <right> display-message
#bind index <left> "<sync-mailbox><change-folder>?<toggle-mailboxes>""
bind browser <right> select-entry
bind browser <left> exit
## =================
## Color definitions
## =================
color attachment white magenta
color body cyan default "ftp://[^ ]*"
color body brightgreen default "[[:alnum:]][-+.#_[:alnum:]]*@[-+.[:alnum:]]*[[:alnum:]]"
color body cyan default "<URL:[^ ]*>"
color bold green default
color error red default
color header yellow default "^cc:"
color header magenta default "^date:"
color header yellow default "^from"
color header brightcyan default "^from:"
color header yellow default "^newsgroups:"
color header yellow default "^reply-to:"
color header brightcyan default "^subject:"
color header green default "^to:"
color header yellow default "^x-mailer:"
color header yellow default "^message-id:"
color header yellow default "^Organization:"
color header yellow default "^Organisation:"
color header yellow default "^User-Agent:"
color header yellow default "^message-id: .*pine"
color indicator white blue
color markers red default
color message white blue
## ==================================================
## Colorizing the body of messages (ie in the pager)
## ==================================================
color normal white default # pager body
# Coloring quoted text - coloring the first 7 levels:
color quoted cyan default
color quoted1 yellow default
color quoted2 red default
color quoted3 green default
color quoted4 cyan default
color quoted5 yellow default
color quoted6 red default
color quoted7 green default
color signature brightred default
color status white blue
color tilde blue default
color tree brightmagenta default
color underline yellow default
color body yellow default "[;:]-[)/(|]" # colorise smileys
color body yellow default "[;:][)/(|]"
color body brightblue default "(http|ftp|news|telnet|finger)://[^ ]*"
color index yellow default ~N # New
color index yellow default ~O # Old
color index brightgreen default '~s glagasse'
color index cyan default '~s glagasse'
color index brightgreen default '~p' # mail to myself
color index brightcyan default '~P' # mail from myself
color index magenta default ~F # Flagged
color index blue default ~T # Tagged
color index red default ~D # Deleted
# Headers to ignore/see
# Ignore everything but the really important lines:
ignore *
unignore from: date subject to cc reply-to:
unignore organization organisation
unignore user-agent: x-agent: x-mailer: x-newsreader:
unignore newsgroups: posted-to:
# ordering of headers in the pager
unhdr_order *
hdr_order Date: To: Cc: X-Newsreader: X-Mailer: Organization: Organisation: User-Agent: Newsgroups: Reply-To: From: Subject:
# this is cool, dual text/html mails have only the text part shown
alternative_order text/plain text/html # I like plaintext more than html.
## "alternates" tells mutt about your addresses. Mutt thus can show mails
## addressed to you in the folder index as "personal" using the flag '+'.
alternates "[email protected]"
set sort=threads
set sort_aux=date-received
account-hook imaps://mail.glagasse.org/ 'unset ssl_verify_host'
# Set the blacks for folders:
#folder-hook . set timeout=15
folder-hook . set sort=threads
folder-hook . set sort_aux=last-date-received
#folder-hook . set sort_aux=date-sent
# When I'm in the main index, check more often :)
#folder-hook "!" set timeout=5
# Mail in my inbox is more date than thread sensitive...
#folder-hook "!" set sort=date-received
#folder-hook "INBOX" set sort=date
folder-hook "Personal" set sort=date
folder-hook "Sent" set sort=date-received
folder-hook . set signature=$HOME/.signature
folder-hook . unmy_hdr *
folder-hook . my_hdr From: Glenn Lagasse <[email protected]>
folder-hook . my_hdr Reply-To: [email protected]
#send-hook . my_hdr X-Operating-System: `uname -s` `uname -r` `uname -v` (`uname -m`)
#send-hook . my_hdr X-Uptime: \`uptime\`
## "lists" adds a list of mailing lists addresses
## so mutt knows about these for showing them in the folder index
## and to allow replying to them with the command "list-reply".
## The first part of the address (up to the @) should be used here.
unlists *
unsubscribe *
#lists opensolaris-discuss zfs-discuss pkg-discuss caiman-discuss
#subscribe sig.oe bloggers bloggers-extra laptop-discuss
## "mailboxes" defines the list of folders to be checked for new mail
## Mutt both can show the number of mailboxes with new mail in the index and
## you can cycle through these after giving the "change-folder" command. :-)
#mailboxes =INBOX =solaris-install-extended =solaris-install-core =caiman-discuss =install-discuss /var/mail/glagasse