Mon, 23 Aug 2021 16:28:04 -0400
improve tabular patterns
384 | 1 | set config_charset = "utf-8" |
2 | ||
287
0e4736894e00
break out roomag config
Meredith Howard <mhoward@roomag.org>
parents:
286
diff
changeset
|
3 | # IMAP |
0e4736894e00
break out roomag config
Meredith Howard <mhoward@roomag.org>
parents:
286
diff
changeset
|
4 | source ~/.mutt/roomag/config |
286 | 5 | |
528 | 6 | macro index,pager <f2> '<sync-mailbox><imap-logout-all><enter-command>source ~/.mutt/roomag/config<enter><change-folder>!<enter>' 'switch roomag' |
300
774a66f904a6
support local config and extra accts, store pwd
Meredith Howard <mhoward@roomag.org>
parents:
291
diff
changeset
|
7 | |
774a66f904a6
support local config and extra accts, store pwd
Meredith Howard <mhoward@roomag.org>
parents:
291
diff
changeset
|
8 | source `F=$HOME/.mutt/local; if [ ! -s "$F" ]; then F=/dev/null;fi;echo "$F"` |
774a66f904a6
support local config and extra accts, store pwd
Meredith Howard <mhoward@roomag.org>
parents:
291
diff
changeset
|
9 | |
286 | 10 | unset imap_passive |
11 | set imap_idle = yes | |
12 | set imap_check_subscribed = yes | |
13 | set imap_keepalive = 300 | |
14 | set imap_peek = no | |
15 | set mark_old = no | |
436
3b52e54e5979
lock down ssl settings, hide hostname and UA
Meredith Howard <mhoward@roomag.org>
parents:
421
diff
changeset
|
16 | |
3b52e54e5979
lock down ssl settings, hide hostname and UA
Meredith Howard <mhoward@roomag.org>
parents:
421
diff
changeset
|
17 | set hostname = `openssl rand -hex 10` |
287
0e4736894e00
break out roomag config
Meredith Howard <mhoward@roomag.org>
parents:
286
diff
changeset
|
18 | set ssl_usesystemcerts = yes |
436
3b52e54e5979
lock down ssl settings, hide hostname and UA
Meredith Howard <mhoward@roomag.org>
parents:
421
diff
changeset
|
19 | set ssl_force_tls = yes |
3b52e54e5979
lock down ssl settings, hide hostname and UA
Meredith Howard <mhoward@roomag.org>
parents:
421
diff
changeset
|
20 | set ssl_use_sslv2 = no |
3b52e54e5979
lock down ssl settings, hide hostname and UA
Meredith Howard <mhoward@roomag.org>
parents:
421
diff
changeset
|
21 | set ssl_use_sslv3 = no |
3b52e54e5979
lock down ssl settings, hide hostname and UA
Meredith Howard <mhoward@roomag.org>
parents:
421
diff
changeset
|
22 | set ssl_use_tlsv1 = no |
3b52e54e5979
lock down ssl settings, hide hostname and UA
Meredith Howard <mhoward@roomag.org>
parents:
421
diff
changeset
|
23 | set ssl_use_tlsv1_1 = no |
286 | 24 | |
546 | 25 | set crypt_use_gpgme = yes |
26 | ||
333
62d107d00441
add smtp_authenticators
Meredith Howard <mhoward@roomag.org>
parents:
329
diff
changeset
|
27 | set smtp_authenticators = "gssapi:login:plain" |
62d107d00441
add smtp_authenticators
Meredith Howard <mhoward@roomag.org>
parents:
329
diff
changeset
|
28 | |
286 | 29 | # Behavior |
572 | 30 | set sleep_time = 0 |
390 | 31 | set connect_timeout = 7 |
367 | 32 | set timeout = 10 |
33 | set mail_check = 47 | |
286 | 34 | set beep = no |
35 | set beep_new = no | |
36 | set move = no | |
37 | set pager_stop = yes | |
38 | set pager_context = 2 | |
39 | set menu_scroll = yes | |
287
0e4736894e00
break out roomag config
Meredith Howard <mhoward@roomag.org>
parents:
286
diff
changeset
|
40 | set mailcap_path = ~/.mutt/mailcap |
286 | 41 | set assumed_charset = "utf-8:iso8859-1" |
42 | set autoedit = yes | |
436
3b52e54e5979
lock down ssl settings, hide hostname and UA
Meredith Howard <mhoward@roomag.org>
parents:
421
diff
changeset
|
43 | set user_agent = no |
286 | 44 | set edit_headers = yes |
348
d72bc8c8d6f0
use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
334
diff
changeset
|
45 | set editor = "exec vim" |
421
7e56d9610769
Disable strict threads
Meredith Howard <mhoward@roomag.org>
parents:
408
diff
changeset
|
46 | set strict_threads = no |
365
b3ab12e8a598
dont wait after urlscan, add htmlify macro
Meredith Howard <mhoward@roomag.org>
parents:
354
diff
changeset
|
47 | set wait_key = no |
550 | 48 | set quit = ask-no |
286 | 49 | |
384 | 50 | set send_charset = "utf-8" |
348
d72bc8c8d6f0
use text_flowed, move mail settings to ftplugin
Meredith Howard <mhoward@roomag.org>
parents:
334
diff
changeset
|
51 | set text_flowed = yes |
386 | 52 | set mime_forward = yes |
384 | 53 | |
326 | 54 | set reverse_name = yes |
55 | set envelope_from = yes | |
56 | set fast_reply = yes | |
57 | set include = yes | |
550 | 58 | set recall = no |
326 | 59 | |
302 | 60 | set header_cache = ~/.cache/mutt |
61 | set message_cachedir = ~/.cache/mutt | |
62 | ||
286 | 63 | auto_view text/html |
291 | 64 | alternative_order text/plain text/html |
286 | 65 | |
314 | 66 | bind generic \` help |
67 | bind generic / search | |
68 | bind generic ? search-reverse | |
69 | bind generic n search-next | |
70 | bind generic \Cu half-up | |
71 | bind generic \Cd half-down | |
72 | ||
354 | 73 | bind index,pager <F5> sync-mailbox |
74 | bind index,pager <Tab> previous-new-then-unread | |
75 | bind index,pager <BackTab> next-new-then-unread | |
550 | 76 | bind index,pager R group-reply |
354 | 77 | |
596
8de875515620
Update for current neomutt
Meredith Howard <mhoward@roomag.org>
parents:
572
diff
changeset
|
78 | bind index g noop |
314 | 79 | bind index gg first-entry |
80 | bind index G last-entry | |
550 | 81 | bind index M recall-message |
647
eabafa02cdb2
easier thread controls
Meredith Howard <mhoward@roomag.org>
parents:
596
diff
changeset
|
82 | bind index - collapse-thread |
eabafa02cdb2
easier thread controls
Meredith Howard <mhoward@roomag.org>
parents:
596
diff
changeset
|
83 | bind index _ collapse-all |
eabafa02cdb2
easier thread controls
Meredith Howard <mhoward@roomag.org>
parents:
596
diff
changeset
|
84 | bind index + limit-current-thread |
286 | 85 | |
596
8de875515620
Update for current neomutt
Meredith Howard <mhoward@roomag.org>
parents:
572
diff
changeset
|
86 | bind pager g noop |
8de875515620
Update for current neomutt
Meredith Howard <mhoward@roomag.org>
parents:
572
diff
changeset
|
87 | bind pager i noop |
286 | 88 | bind pager <up> previous-line |
89 | bind pager <down> next-line | |
314 | 90 | bind pager gg top |
91 | bind pager G bottom | |
550 | 92 | bind pager ? search-reverse |
286 | 93 | |
327 | 94 | macro index,pager \Cb "<pipe-message> urlscan<enter>" 'urlscan' |
95 | macro attach,compose \Cb "<pipe-entry> urlscan<enter>" 'urlscan' | |
96 | ||
365
b3ab12e8a598
dont wait after urlscan, add htmlify macro
Meredith Howard <mhoward@roomag.org>
parents:
354
diff
changeset
|
97 | # Turn a text/plain markdown part into text/html |
552
1a131edec257
Nice up pandoc-html thing
Meredith Howard <mhoward@roomag.org>
parents:
550
diff
changeset
|
98 | macro compose \eh "F mutt-md2html \ny^T^Utext/html\n" 'htmlify' |
365
b3ab12e8a598
dont wait after urlscan, add htmlify macro
Meredith Howard <mhoward@roomag.org>
parents:
354
diff
changeset
|
99 | |
846 | 100 | # Turn a text/plain markdown part into proper multipart |
101 | macro compose \em \ | |
102 | "<enter-command>set pipe_decode<enter>\ | |
847
3d460b026be9
Better multipart, working tmpfile cleanup
Meredith Howard <mhoward@roomag.org>
parents:
846
diff
changeset
|
103 | <pipe-entry>~/bin/mutt-md2html -o /tmp/mutt-$hostname.msg.html<enter>\ |
3d460b026be9
Better multipart, working tmpfile cleanup
Meredith Howard <mhoward@roomag.org>
parents:
846
diff
changeset
|
104 | <enter-command>unset pipe_decode<enter>\ |
3d460b026be9
Better multipart, working tmpfile cleanup
Meredith Howard <mhoward@roomag.org>
parents:
846
diff
changeset
|
105 | a^U/tmp/mutt-$hostname.msg.html\n^Du^T^Utext/html; charset=utf-8\n\ |
3d460b026be9
Better multipart, working tmpfile cleanup
Meredith Howard <mhoward@roomag.org>
parents:
846
diff
changeset
|
106 | =TT&d^U\n" \ |
846 | 107 | "multipartify" |
108 | ||
286 | 109 | push <first-entry> |
110 | ||
111 | # Appearance | |
324
d4e93a4f6c51
tweak threading and appearance
Meredith Howard <mhoward@roomag.org>
parents:
320
diff
changeset
|
112 | set sort = reverse-threads |
d4e93a4f6c51
tweak threading and appearance
Meredith Howard <mhoward@roomag.org>
parents:
320
diff
changeset
|
113 | set sort_aux = last-date |
d4e93a4f6c51
tweak threading and appearance
Meredith Howard <mhoward@roomag.org>
parents:
320
diff
changeset
|
114 | set sort_browser = reverse-date |
286 | 115 | set status_on_top = yes |
324
d4e93a4f6c51
tweak threading and appearance
Meredith Howard <mhoward@roomag.org>
parents:
320
diff
changeset
|
116 | set pager_index_lines = 7 |
350 | 117 | set wrap = 100 |
118 | set reflow_wrap = 100 | |
286 | 119 | set markers = no |
516 | 120 | set collapse_unread = no |
560
e29b421c22b7
collapse_all added a bit back
Meredith Howard <mhoward@roomag.org>
parents:
552
diff
changeset
|
121 | set collapse_all = yes |
286 | 122 | |
324
d4e93a4f6c51
tweak threading and appearance
Meredith Howard <mhoward@roomag.org>
parents:
320
diff
changeset
|
123 | set date_format = "%m-%d %H:%M" |
704
7118c036f770
fix collapsed thread line
Meredith Howard <mhoward@roomag.org>
parents:
662
diff
changeset
|
124 | set index_format = "%3C %Z %D %-25.25F %?M?〰& ?%s%?M?%* (%M messages)?" |
662 | 125 | set status_format = " %r Mutt: %f [N:%n%?d? D:%d?%?t? *:%t?] %>- %?V?/%V/ ?(%s/%S) %P" |
286 | 126 | |
127 | ignore * | |
408 | 128 | unignore from to cc date subject |
129 | unignore list-id posted-to | |
286 | 130 | |
408 | 131 | hdr_order from to cc date subject |
286 | 132 | |
133 | # jellybeans-ish | |
661 | 134 | color attachment color162 color233 |
135 | color bold color183 color233 | |
136 | color hdrdefault color215 color233 | |
137 | color indicator brightwhite color234 | |
138 | color markers color215 color233 | |
139 | color message color188 color233 | |
140 | color normal color188 color233 | |
141 | color search brightgreen color233 | |
142 | color signature color222 color233 | |
143 | color status color30 color235 | |
144 | color tilde color244 color233 | |
145 | color tree color104 color233 | |
146 | color error color167 color233 | |
147 | # color underline brightmagenta color233 | |
286 | 148 | |
661 | 149 | # Colors for items in the index |
150 | color index color188 color233 ~A | |
151 | color index default color233 ~R | |
152 | color index color110 color233 ~U | |
153 | color index color213 color233 ~F | |
154 | color index color217 color233 ~T | |
155 | color index color246 color233 ~D | |
286 | 156 | |
157 | # Highlights inside message body | |
158 | ||
159 | # URLs | |
160 | color body color103 color233 "https?://[^ \"\t\r\n>]+" | |
161 | color body color103 color233 "mailto:[^ \"\t\r\n>]+" | |
162 | ||
163 | # Email addresses. | |
164 | color body color103 color233 "[-a-z_0-9.%$+]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+" | |
165 | ||
325
6dc43d41bed1
cheaply color diffs, disable nested quote colors
Meredith Howard <mhoward@roomag.org>
parents:
324
diff
changeset
|
166 | # Nested quotes |
286 | 167 | color quoted color107 color233 |
325
6dc43d41bed1
cheaply color diffs, disable nested quote colors
Meredith Howard <mhoward@roomag.org>
parents:
324
diff
changeset
|
168 | # color quoted1 color58 color233 |
6dc43d41bed1
cheaply color diffs, disable nested quote colors
Meredith Howard <mhoward@roomag.org>
parents:
324
diff
changeset
|
169 | # color quoted2 color244 color233 |
6dc43d41bed1
cheaply color diffs, disable nested quote colors
Meredith Howard <mhoward@roomag.org>
parents:
324
diff
changeset
|
170 | |
6dc43d41bed1
cheaply color diffs, disable nested quote colors
Meredith Howard <mhoward@roomag.org>
parents:
324
diff
changeset
|
171 | # diffs, maybe |
334 | 172 | color body color107 color233 "^[\+]+.*" |
173 | color body color167 color233 "^[\-]+.*" |