-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.muttrc
executable file
·115 lines (94 loc) · 3.5 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
set editor="emacs"
auto_view text/html
set mailcap_path = ~/.mutt/mailcap
# Speed up folders switch
set sleep_time = 0
# Allow Mutt to open new imap connection automatically.
unset imap_passive
# Set keep alive. Might help not to disconnect to frequently.
set imap_keepalive=300
# And poll the current mailbox more often (not needed with IDLE in post 1.5.11)
set timeout=15
# How often to check for new mail (time in seconds).
set mail_check = 5
# Store messages locally to speed things up, like searching message bodies.
# Can be the same folder as header_cache.
# This will cost important disk usage according to your e-mail amount.
set message_cachedir=~/.cache/mutt/bodies
set certificate_file=~/.cache/mutt/certificates
# Store message headers locally to speed things up.
set header_cache=~/.cache/mutt/headers
# Sidebar
set mail_check_stats=yes
# change width accordingly
set sidebar_width=30
# set sidebar_format='%B%* %n'
# Visible at first, then change its value to yes
set sidebar_visible=yes
# set sidebar_delim='|'
# set sidebar_sort=yes
# endof: Sidebar
# Pager View Options
set pager_index_lines = 10 # number of index lines to show
set pager_context = 3 # number of context lines to show
set pager_stop # don't go to next message automatically
set menu_scroll # scroll in menus
set tilde # show tildes like in vim
unset markers # no ugly plus signs
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
alternative_order text/plain text/enriched text/html
# <ESC>-m: Mark all messages in mailbox as read
macro index <esc>m "T~N<enter>;WNT~O<enter>;WO\CT~T<enter>" "Mark all messages as read"
# <CONTROL>-x
macro index,pager \CB <sidebar-prev><sidebar-open>
macro index,pager \CN <sidebar-next><sidebar-open>
macro index,pager \CK <sidebar-prev-new>
macro index,pager \CL <sidebar-next-new>
bind index,pager \CO sidebar-open
macro index,pager b '<enter-command>toggle sidebar_visible<enter>'
bind pager k previous-line
bind pager j next-line
bind pager gg top
bind pager G bottom
bind pager g group-reply
bind pager <up> previous-line
bind pager <down> next-line
bind pager [ previous-unread
bind pager ] next-unread
bind index - collapse-thread
bind index _ collapse-all
# View attachments properly.
bind attach <return> view-mailcap
# endof: Pager View Options
bind index B bounce-message
# Patch highlight in mail
color body red color234 "^-.*"
color body red color234 "^-$"
color body green color234 "^\\+.*"
color body green color234 "^\\+$"
color body brightwhite color234 "^diff .*"
color body brightwhite color234 "^--- .*"
color body brightwhite color234 "^\\+\\+\\+ .*"
color body magenta color234 "^@@.*"
# Time of mail sent in index
set date_format="%d %b %R"
set index_format="%4C %Z %D %-15.15L (%?l?%4l&%4c?) %s"
# Sort threads by time of *last* received letter
set strict_threads="yes"
set sort="threads"
set sort_aux="last-date"
# Address book
set alias_file=~/.mutt/aliases.txt
set query_command="abook --mutt-query '%s'"
source ~/.mutt/aliases.txt
macro index,pager A "<pipe-message>abook --add-email-quiet<return>" "add the sender address to abook"
# switch account on startup
source `[ -z $TARANTOOL ] && echo '~/.mutt/gcc.kyukhin' || echo '~/.mutt/tarantool.kyukhin' `
# Do not exit on `q'
set quit=ask-no
set pager_stop=yes
set charset = "utf-8"
set send_charset = "utf-8"
set assumed_charset = "utf-8"
# source ~/.mutt/mutt-colors-solarized-light-256.muttrc
source ~/.mutt/mutt-colors-solarized-dark-256.muttrc