-
Notifications
You must be signed in to change notification settings - Fork 43
/
Copy path.muttrc
162 lines (140 loc) · 9.37 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
# Local #######################################################################
set realname = "Seth House"
set from = "Seth House <[email protected]>"
# Reading Mail ################################################################
set sort = threads
set sort_aux = last-date-received
set move = no # move read msgs to your mbox folder?
set mark_old = no
set charset = utf-8
set message_cachedir = ~/.mutt/cache/bodies
set message_cache_clean = yes
# Viewing Mail ################################################################
auto_view text/html
ignore *
unignore Date: From: To: CC: Bcc: Subject:
hdr_order Subject: Date: From: To: CC: Bcc:
set index_format = "%{%b %d} %-15.15L [%Z] %s"
set sidebar_visible = yes
set sidebar_sort_method = alpha
set sidebar_short_path = yes
set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S"
set mail_check_stats = yes
# Writing Mail ################################################################
set markers = no
set include = yes
set reverse_name = yes
set reverse_realname = no
# Mail Server #################################################################
# Create encrypted file containing:
# set smtp_url="smtp://[email protected]:[email protected]:587/
#
# Encrypt via:
# gpg -r [your keyid] -e ~/.mutt/passwords
# shred ~/.mutt/passwords
# rm ~/.mutt/passwords
source "gpg -qd ~/.mutt/passwords.gpg |"
set mbox_type=Maildir
set folder="~/Mail"
set mask="!^\\.[^.]"
set postponed = "+Drafts"
set record = "+Sent"
set trash="+Trash"
set reverse_alias = yes
set send_charset = utf-8
set sort_alias = alias
# (Note: GNU find-ism.)
mailboxes `find ~/Mail -mindepth 1 -maxdepth 1 -type d -printf "+'%f' "`
# Color ######################################################################
color indicator default blue # current highlighted line
color tree blue default # threads arrow
color status blue white # top and bottom status
color index cyan default "~Q" # replied to
color index green default "~N" # new
color index green default "~O" # unread
color index green default "~U" # unread
color index blue default "~D" # deleted
color index magenta default "~F" # flagged
color sidebar_divider brightblack default
color sidebar_new green default
color sidebar_flagged red default
color header green default "^To:"
color header green default "^cc"
color header red default "^From:"
color header brightblue default "^date:"
color header brightyellow default "^subject"
color signature blue default
color attachment magenta default
color tilde blue default
color quoted green default
color quoted1 cyan default
color quoted2 brightgreen default
color quoted3 brightcyan default
# highlight URLs
color body yellow default "(finger|ftp|http|https|news|telnet)://[^ >]*"
color body yellow default "<URL:[^ ]*>"
color body yellow default "www\\.[-.a-z0-9]+\\.[a-z][a-z][a-z]?([-_./~a-z0-9]+)?"
color body yellow default "mailto: *[^ ]+\(\\i?subject=[^ ]+\)?"
color body yellow default "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
# highlight *bold* _underlined_ /italic/ text
color body brightwhite default "[^[:alnum:]][*_/][-_&!.,[:alnum:]]+[*_/][^[:alnum:]]"
color body brightwhite default "^[*_/][-_&!.,[:alnum:]]+[*_/][^[:alnum:]]"
color body brightwhite default "^[*_/][-_&!.,[:alnum:]]+[*_/]$"
# Vim keybindings #############################################################
# https://ryanlue.com/posts/2017-05-21-mutt-the-vim-way
# Navigation
# ----------------------------------------------------
bind generic z noop
bind index,pager,attach g noop
bind index,pager d noop
bind index,pager s noop
bind index,pager c noop
bind generic,pager t noop
bind generic,index,pager \Cf next-page
bind generic,index,pager \Cb previous-page
bind generic gg first-entry
bind generic,index G last-entry
bind pager gg top
bind pager G bottom
bind generic,pager \Cy previous-line
bind generic,index,pager \Ce next-line
bind generic,index,pager \Cd half-down
bind generic,index,pager \Cu half-up
bind generic zt current-top
bind generic zz current-middle
bind generic zb current-bottom
bind index za collapse-thread
bind index zA collapse-all
bind index,pager N search-opposite
bind index <Backtab> previous-new-then-unread
# Go to folder...
macro index,pager gi "<change-folder>=INBOX<enter>" "open inbox"
macro index,pager gd "<change-folder>=Drafts<enter>" "open drafts"
macro index,pager gs "<change-folder>=Sent<enter>" "open sent"
macro index,pager gl "<change-folder>=Lists<enter>" "open lists"
macro index,pager ga "<change-folder>=Activity%20Stream<enter>" "open activity stream"
macro index,pager gt "<change-folder>$trash<enter>" "open trash"
macro index,pager gf "<change-folder>?" "open mailbox..."
# Actions
# ----------------------------------------------------
bind index,pager a group-reply
macro index,pager dd "<delete-message>" "move message to trash"
macro index,pager dat "<delete-thread>" "move thread to trash"
macro index,pager ss ":macro browser \\015 \"\<select-entry\>\<sync-mailbox\>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015:macro browser q \"<exit>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015<save-message>?" "save message to a mailbox"
macro index sat ":macro browser \\015 \"\<select-entry\>\<sync-mailbox\>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015:macro browser q \"<exit>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015'q<untag-pattern>.\\015\"\015<mark-message>q<enter><untag-pattern>.<enter><tag-thread><tag-prefix-cond><save-message>?" "save thread to a mailbox"
macro index \;s ":macro browser \\015 \"\<select-entry\>\<sync-mailbox\>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015:macro browser q \"<exit>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015<tag-prefix-cond><save-message>?" "save tagged messages to a mailbox"
macro pager sat ":macro browser \\015 \"\<select-entry\>\<sync-mailbox\>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015<display-message>\"\015:macro browser q \"<exit>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015'q<untag-pattern>.\\015<display-message>\"\015<exit><mark-message>q<enter><untag-pattern>.<enter><tag-thread><tag-prefix><save-message>?" "save thread to a mailbox"
macro index,pager cc ":macro browser \\015 \"\<select-entry\>\<sync-mailbox\>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015:macro browser q \"<exit>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015<copy-message>?" "copy message to a mailbox"
macro index cat ":macro browser \\015 \"\<select-entry\>\<sync-mailbox\>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015:macro browser q \"<exit>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015'q<untag-pattern>.\\015\"\015<mark-message>q<enter><untag-pattern>.<enter><tag-thread><tag-prefix-cond><copy-message>?" "copy thread to a mailbox"
macro index \;c ":macro browser \\015 \"\<select-entry\>\<sync-mailbox\>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015:macro browser q \"<exit>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015\"\015<tag-prefix-cond><copy-message>?" "copy tagged messages to a mailbox"
macro pager cat ":macro browser \\015 \"\<select-entry\>\<sync-mailbox\>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015<display-message>\"\015:macro browser q \"<exit>:bind browser \\\\015 select-entry\\015:bind browser q exit\\015'q<untag-pattern>.\\015<display-message>\"\015<exit><mark-message>q<enter><untag-pattern>.<enter><tag-thread><tag-prefix><copy-message>?" "copy thread to a mailbox"
bind generic tt tag-entry
bind index tat tag-thread
bind pager tt tag-message
macro pager tat "<exit><mark-message>q<enter><tag-thread>'q<display-message>" "tag-thread"
macro index,pager gx "<pipe-message>urlview<Enter>" "call urlview to extract URLs out of a message"
macro attach,compose gx "<pipe-entry>urlview<Enter>" "call urlview to extract URLs out of a message"
# Command Line
# ----------------------------------------------------
bind editor \Cp history-up
bind editor \Cn history-down