-
Notifications
You must be signed in to change notification settings - Fork 2
/
muttrc
447 lines (386 loc) · 14.6 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
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
## ~/.muttrc
bind browser <Enter> select-entry
bind browser ' ' select-entry
bind index ' ' display-message
bind index <Enter> display-message
bind index \cu half-up
bind index \cd half-down
bind index 1G first-entry
bind index G last-entry
bind index v collapse-thread
bind index V collapse-all
bind pager B bounce-message
bind pager b previous-page
bind pager j next-line
bind pager k previous-line
bind pager <Enter> next-line
#bind pager <Backspace> previous-line
bind pager \cu half-up
bind pager \cd half-down
bind pager 1G top
bind pager G bottom
bind index <PageDown> next-entry
bind index <PageUp> previous-entry
macro index \cl "<refresh><current-middle>"
#set quit=ask-yes
set autoedit
set beep=no
set beep_new=no
set allow_8bit
set narrow_tree
set hide_thread_subject=yes
#set arrow_cursor
#set ascii_chars
set edit_headers
set fast_reply
set menu_scroll
set mark_old
unset markers
set sig_dashes
#set signature=$HOME/.mutt/mutt_signature
unset strict_threads
set pager_stop
set pager_index_lines=13
set reverse_alias
set reverse_name
unset use_from
set envelope_from
set use_8bitmime
set mailcap_path=$HOME/.mailcap
set ispell="aspell --mode=email check"
#set ispell="ispell"
#set hide_missing
set metoo=no
set abort_nosubject=no
set copy=yes
set confirmappend=no
set include=yes
set print=ask-no
set print_decode=yes
set print_command="enscript -M Letter -G -2 -r --mark-wrapped-lines=box -E -DDuplex:true"
set print_split=yes
set reply_to=ask-yes
set attribution="On %d, %n wrote:"
set editor="vim"
set postpone=ask-yes
set read_inc=10
set uncollapse_jump=yes
set collapse_unread=yes
set sort=threads
set sort_aux=reverse-last-date-received
set forward_quote=yes
set forward_decode=no
set mime_forward=ask-no
set mime_forward_decode=no
set mime_forward_rest=yes
set indent_str="> "
set status_on_top
set tilde
set mail_check=10
set timeout=5
#set ssl_verify_host=no
#auto_view [...]
set implicit_autoview
alternative_order text/plain text/html text/enriched text/calendar
# %?<sequence_char>?<optional_string>?
#
# where sequence_char is a character from the table above, and
# optional_string is the string you would like printed if sequence_char
# is nonzero. optional_string may contain other sequences as well as
# normal text, but you may not nest optional strings.
#
# Here is an example illustrating how to optionally print the number of
# new messages in a mailbox: %?n?%n new messages.?
#
# You can also switch between two strings using the following construct:
#
# %?<sequence_char>?<if_string>&<else_string>?
#
# If the value of sequence_char is non-zero, if_string will be expanded,
# otherwise else_string will be expanded.
#
# You can force the result of any printf-like sequence to be lowercase
# by prefixing the sequence character with an underscore (_) sign. For
# example, if you want to display the local hostname in lowercase, you
# would use: %_h
#
# If you prefix the sequence character with a colon (:) character, mutt
# will replace any dots in the expansion by underscores. This might be
# helpful with IMAP folders that don't like dots in folder names.
#
# ------------------------------------------------
# --- index / forward / message / pager format ---
# ------------------------------------------------
# %a address of the author
# %A reply-to address (if present; otherwise: address of author)
# %b filename of the original message folder (think mailBox)
# %B the list to which the letter was sent, or else the folder name
# (%b).
# %c number of characters (bytes) in the message
# %C current message number
# %d date and time of the message in the format specified by
# ``date_format'' converted to sender's time zone
# %D date and time of the message in the format specified by
# ``date_format'' converted to the local time zone
# %e current message number in thread
# %E number of messages in current thread
# %f entire From: line (address + real name)
# %F author name, or recipient name if the message is from you
# %H spam attribute(s) of this message
# %i message-id of the current message
# %l number of lines in the message (does not work with maildir, mh,
# and possibly IMAP folders)
# %L If an address in the To or CC header field matches an address
# defined by the users ``subscribe'' command, this displays "To
# <list-name>", otherwise the same as %F.
# %m total number of message in the mailbox
# %M number of hidden messages if the thread is collapsed.
# %N message score
# %n author's real name (or address if missing)
# %O (_O_riginal save folder) Where mutt would formerly have stashed
# the message: list name or recipient name if no list
# %s subject of the message
# %S status of the message (N/D/d/!/r/*)
# %t `to:' field (recipients)
# %T the appropriate character from the $to_chars string
# %u user (login) name of the author
# %v first name of the author, or the recipient if the message is
# from you
# %X number of attachments (please see the ``attachments'' section
# for possible speed effects)
# %y `x-label:' field, if present
# %Y `x-label' field, if present, and (1) not at part of a thread
# tree, (2) at the top of a thread, or (3) `x-label' is different
# from preceding message's `x-label'.
# %Z message status flags
# %{fmt} the date and time of the message is converted to sender's time
# zone, and ``fmt'' is expanded by the library function
# ``strftime''; a leading bang disables locales
# %[fmt] the date and time of the message is converted to the local time
# zone, and ``fmt'' is expanded by the library function
# ``strftime''; a leading bang disables locales
# %(fmt) the local date and time when the message was received. ``fmt''
# is expanded by the library function ``strftime''; a leading
# bang disables locales
# %<fmt> the current local time. ``fmt'' is expanded by the library
# function ``strftime''; a leading bang disables locales.
# %>X right justify the rest of the string and pad with character "X"
# %|X pad to the end of the line with character "X"
#set index_format="%Z %3C %{%b %d} %-19.19L (%5c) %s"
#set index_format="%4C %Z %{%b %d} %-15.15n (%4l) %s"
#set index_format="%Z %3C %{%b %d} %-17.17n (%4l) %s"
#set index_format="%Z %3C %{%b %d} %-17.17n (%5c) %s"
#set index_format="%Z %3C %{%b %d} %-17.17n - %s"
#set index_format="%3C %Z %[!%m.%d.%y] %-19.19n - %?X?%X& ? %?M?*%M*&%02e/%02E? %s%> %?y?[%Y]?"
#set index_format="%3C %Z %[!%m.%d.%y] %-19.19n - %?M?(%3M)&%02e/%02E? %s%> %?y?[%Y]?"
set index_format="%3C %Z %[!%m.%d.%y] %-19.19n %?X?(%1X)& ? %?M?(%02M)& ? %s%> %?y?[%Y]?"
#set forward_format="[%a: %s]"
set forward_format="Fwd: %s"
set message_format="%s"
#set pager_format="-%Z- %C/%m: %-20.20n %s"
#set pager_format="%S [%C/%T] %l %n %s"
set pager_format="%s %> (%c)"
# -------------------
# --- date format ---
# -------------------
# (man strftime(3)
set date_format="!%a, %b %d, %Y at %I:%M:%S%p %Z"
# --------------------
# --- alias format ---
# --------------------
# %a alias name
# %f flags - currently, a "d" for an alias marked for deletion
# %n index number
# %r address which alias expands to
# %t character which indicates if the alias is tagged for inclusion
set alias_format="%4n %2f %t %-10a %r"
# ---------------------
# --- folder format ---
# ---------------------
# %C current file number
# %d date/time folder was last modified
# %f filename
# %F file permissions
# %g group name (or numeric gid, if missing)
# %l number of hard links
# %N N if folder has new mail, blank otherwise
# %s size in bytes
# %t *if the file is tagged, blank otherwise
# %u owner name (or numeric uid, if missing)
# %>X right justify the rest of the string and pad with character "X"
# %|X pad to the end of the line with character "X"
#set folder_format="%N %F %2l %-8.8u %-8.8g %8s %d %f"
#set folder_format="%-3C %N %f %> %s "
#set folder_format="%2C %N %f"
set folder_format=" %?N?%-4N& ? %f"
# ---------------------
# --- attach format ---
# ---------------------
# %C charset
# %c requires charset conversion (n or c)
# %D deleted flag
# %d description
# %e MIME content-transfer-encoding
# %f filename
# %I disposition (I=inline, A=attachment)
# %m major MIME type
# %M MIME subtype
# %n attachment number
# %Q "Q", if MIME part qualifies for attachment counting
# %s size
# %t tagged flag
# %T graphic tree characters
# %u unlink (=to delete) flag
# %X number of qualifying MIME parts in this part and its children
# (please see the ``attachments'' section for possible speed
# effects)
# %>X right justify the rest of the string and pad with character "X"
# %|X pad to the end of the line with character "X"
set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
# ----------------------
# --- compose format ---
# ----------------------
# %a total number of attachments
# %h local hostname
# %l approximate size (in bytes) of the current message
# %v Mutt version string
set compose_format="-- Mutt: Compose [Approx. msg size: %l Atts: %a]%>-"
# ---------------------
# --- status format ---
# ---------------------
# %b number of mailboxes with new mail *
# %d number of deleted messages *
# %f the full pathname of the current mailbox
# %F number of flagged messages *
# %h local hostname
# %l size (in bytes) of the current mailbox *
# %L size (in bytes) of the messages shown (i.e., which match the
# current limit) *
# %m the number of messages in the mailbox *
# %M the number of messages shown (i.e., which match the current
# limit) *
# %n number of new messages in the mailbox *
# %o number of old unread messages *
# %p number of postponed messages *
# %P percentage of the way through the index
# %r modified/read-only/won't-write/attach-message indicator,
# according to $status_chars
# %s current sorting mode ($sort)
# %S current aux sorting method ($sort_aux)
# %t number of tagged messages *
# %u number of unread messages *
# %v Mutt version string
# %V currently active limit pattern, if any *
# %>X right justify the rest of the string and pad with "X"
# %|X pad to the end of the line with "X"
# (*) can be optionally printed if non-zero
#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)---"
set status_format="Mutt:%?V? [%V]? %f [Flagged:%F Msgs:%m%?n? New:%n?%?d? Del:%d?%?p? Post:%p?] (%l)%>-(%P)---"
# ------------------------
# --- mix entry format ---
# ------------------------
# %n The running number on the menu.
# %c Remailer capabilities.
# %s The remailer's short name.
# %a The remailer's e-mail address.
#set mix_entry_format="%4n %c %-16s %a"
# ------------------------
# --- pgp entry format ---
# ------------------------
# %n number
# %k key id
# %u user id
# %a algorithm
# %l key length
# %f flags
# %c capabilities
# %t trust/validity of the key-uid association
# %[<s>] date of the key where <s> is an strftime(3) expression
set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"
#set quote_regexp="^([ \t]*[>|#:}])+"
#set quote_regexp="^ *[a-zA-Z]*[]%:\*>|}][]>|}-]*"
ignore *
unignore date subject from reply-to to cc date x-label user-agent
unhdr_order *
hdr_order date subject from reply-to to cc date x-label user-agent
bind index,pager x noop
bind index,pager <esc>k noop
#macro index,pager I c!\n
#macro index \eb '/~b ' 'search in message bodies'
macro index,pager \cn |urlview\n 'call urlview to extract URLs out of a message'
# macro for auto create-alias
#macro index,pager a "<create-alias><enter><enter><enter><enter><enter><reply>"
#macro index,pager a "<create-alias><enter><enter><enter><enter><enter>"
#macro index S "<esc>t<tag-prefix><save-message>" "Save Thread"
# ---------------
# --- Sidebar ---
# ---------------
#set sidebar_width=20
#set sidebar_visible=yes
# -----------------------------------
# --- Label stuff (GTD With Mutt) ---
# -----------------------------------
# store editor/delete options for restore after label operation:
set my_default_editor=$editor
set my_delete=$delete
# label message:
#macro index,pager y "\
#<enter-command>set editor=\"$HOME/.mutt/editlabel\"<enter>\
#<enter-command>set delete=\"yes\"<enter>\
#<edit><sync-mailbox><toggle-new><previous-entry>\
#<enter-command>set delete=\"$my_delete\"<enter>\
#<enter-command>set editor=\"$my_default_editor\"<enter>\
#" "Add/Remove Label"
# view labeled messages:
#macro index \Cx "<limit>~y " "View Labeled Messages"
# view all labeled messages:
#macro index \Cy "<limit>~y .*\n" "View All Labeled Messages"
# label message, save to ACTION folder:
#macro index,pager <esc>a "<enter-command>set editor=\"$HOME/.mutt/editlabel\"<enter>\
#<edit><sync-mailbox><next-undeleted>\
#<enter-command>set editor=\"$my_default_editor\"<enter><save-message>=ACTION" "Add Label and save to ACTION"
# ----------------------------------------------------------------
# --- mu/notmuch searching (non-IMAP, offlinemap to ~/Maildir) ---
# ----------------------------------------------------------------
#macro index <F9> "<sync-mailbox><shell-escape>offlineimap -c ~/.priv/offlineimaprc -u TTY.TTYUI<enter>" "offlineimap"
#macro index <F10> "<shell-escape>mu index<enter>" "mu index"
#macro index <F11> "<shell-escape>mu find -c -l ~/Maildir/search " "mu find"
#macro index <F12> "<change-folder-readonly>=search<enter>" "mu results"
macro index <F9> "<sync-mailbox><shell-escape>echo 'Syncing...'; ~/.bin/email_sync; echo 'Biffing...'; ~/.priv/bin/notmuch_biff -a; echo 'Done!'<enter>" "Email sync mbsync/notmuch/afew/biff"
macro index <F10> "<vfolder-from-query>" "notmuch search"
# ---------------------------
# --- Attachment Handling ---
# ---------------------------
#attachments +A */.*
#attachments -A text/x-vcard
#attachments -A application/pgp.*
#attachments -A application/x-pkcs7-.*
#attachments -A message/external-body
#attachments +I text/plain
#attachments -I message/external-body
# ---------------
# --- Aliases ---
# ---------------
set alias_file=$HOME/.priv/mutt_aliases
source $HOME/.priv/mutt_aliases
#macro index,pager \eA "!$EDITOR $HOME/.priv/mutt_aliases\n:source $HOME/.priv/mutt_aliases\n" 'edit alias file'
#macro index,pager \ea "!$PAGER $HOME/.priv/mutt_aliases\n" 'view alias file'
# ------------------------
# --- Sending to Lists ---
# ------------------------
#send-hook ~l 'unset record'
# ----------------------
# --- PGP/GPG Crypto ---
# ----------------------
source $HOME/.mutt/crypto
# ----------------
# --- Accounts ---
# ----------------
source $HOME/.priv/bin/mutt_accounts|
# -----------------------------
# --- My Aliases and Colors ---
# -----------------------------
source $HOME/.mutt/colors
#source $HOME/.mutt/colors_solarized
folder-hook . 'push <collapse-all><jump>1\n'