-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.muttrc
More file actions
173 lines (142 loc) · 4.9 KB
/
Copy path.muttrc
File metadata and controls
173 lines (142 loc) · 4.9 KB
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
set config_charset = "utf-8"
# IMAP
source ~/.mutt/roomag/config
macro index,pager <f2> '<sync-mailbox><imap-logout-all><enter-command>source ~/.mutt/roomag/config<enter><change-folder>!<enter>' 'switch roomag'
source `F=$HOME/.mutt/local; if [ ! -s "$F" ]; then F=/dev/null;fi;echo "$F"`
unset imap_passive
set imap_idle = yes
set imap_check_subscribed = yes
set imap_keepalive = 300
set imap_peek = no
set mark_old = no
set hostname = `openssl rand -hex 10`
set ssl_usesystemcerts = yes
set ssl_force_tls = yes
set ssl_use_sslv2 = no
set ssl_use_sslv3 = no
set ssl_use_tlsv1 = no
set ssl_use_tlsv1_1 = no
set crypt_use_gpgme = yes
set smtp_authenticators = "gssapi:login:plain"
# Behavior
set sleep_time = 0
set connect_timeout = 7
set timeout = 10
set mail_check = 47
set beep = no
set beep_new = no
set move = no
set pager_stop = yes
set pager_context = 2
set menu_scroll = yes
set mailcap_path = ~/.mutt/mailcap
set assumed_charset = "utf-8:iso8859-1"
set autoedit = yes
set user_agent = no
set edit_headers = yes
set editor = "exec vim"
set strict_threads = no
set wait_key = no
set quit = ask-no
set send_charset = "utf-8"
set text_flowed = yes
set mime_forward = yes
set reverse_name = yes
set envelope_from = yes
set fast_reply = yes
set include = yes
set recall = no
set header_cache = ~/.cache/mutt
set message_cachedir = ~/.cache/mutt
auto_view text/html
alternative_order text/plain text/html
bind generic \` help
bind generic / search
bind generic ? search-reverse
bind generic n search-next
bind generic \Cu half-up
bind generic \Cd half-down
bind index,pager <F5> sync-mailbox
bind index,pager <Tab> previous-new-then-unread
bind index,pager <BackTab> next-new-then-unread
bind index,pager R group-reply
bind index g noop
bind index gg first-entry
bind index G last-entry
bind index M recall-message
bind index - collapse-thread
bind index _ collapse-all
bind index + limit-current-thread
bind pager g noop
bind pager i noop
bind pager <up> previous-line
bind pager <down> next-line
bind pager gg top
bind pager G bottom
bind pager ? search-reverse
macro index,pager \Cb "<pipe-message> urlscan<enter>" 'urlscan'
macro attach,compose \Cb "<pipe-entry> urlscan<enter>" 'urlscan'
# Turn a text/plain markdown part into text/html
macro compose \eh "F mutt-md2html \ny^T^Utext/html\n" 'htmlify'
# Turn a text/plain markdown part into proper multipart
macro compose \em \
"<enter-command>set pipe_decode<enter>\
<pipe-entry>~/bin/mutt-md2html -o /tmp/mutt-$hostname.msg.html<enter>\
<enter-command>unset pipe_decode<enter>\
a^U/tmp/mutt-$hostname.msg.html\n^Du^T^Utext/html; charset=utf-8\n\
=TT&d^U\n" \
"multipartify"
push <first-entry>
# Appearance
set sort = reverse-threads
set sort_aux = last-date
set sort_browser = reverse-date
set status_on_top = yes
set pager_index_lines = 3
set wrap = 100
set reflow_wrap = 100
set markers = no
set collapse_unread = no
set collapse_all = yes
set date_format = "%m-%d %H:%M"
set index_format = "%3C %Z %D %-25.25F %?M?〰& ?%s%?M?%* (%M messages)?"
set status_format = " %r Mutt: %f [N:%n%?d? D:%d?%?t? *:%t?] %>- %?V?/%V/ ?(%s/%S) %P"
ignore *
unignore from to cc date subject
unignore list-id posted-to
hdr_order from to cc date subject
# jellybeans-ish
color attachment color162 color233
color bold color183 color233
color hdrdefault color215 color233
color indicator brightwhite color234
color markers color215 color233
color message color188 color233
color normal color188 color233
color search brightgreen color233
color signature color222 color233
color status color30 color235
color tilde color244 color233
color tree color104 color233
color error color167 color233
# color underline brightmagenta color233
# Colors for items in the index
color index color188 color233 ~A
color index default color233 ~R
color index color110 color233 ~U
color index color213 color233 ~F
color index color217 color233 ~T
color index color246 color233 ~D
# Highlights inside message body
# URLs
color body color103 color233 "https?://[^ \"\t\r\n>]+"
color body color103 color233 "mailto:[^ \"\t\r\n>]+"
# Email addresses.
color body color103 color233 "[-a-z_0-9.%$+]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
# Nested quotes
color quoted color107 color233
# color quoted1 color58 color233
# color quoted2 color244 color233
# diffs, maybe
color body color107 color233 "^[\+]+.*"
color body color167 color233 "^[\-]+.*"