-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmuttrc
141 lines (101 loc) · 2.86 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
# -- Mail --
set realname = "Alejandro Gómez"
set mbox_type = Maildir
set edit_headers
set folder = /data/Mail
set spoolfile = +/INBOX
set from = "[email protected]"
set sendmail = "/usr/bin/msmtp -a alejandro"
set sendmail_wait = 0
unset record
# Default inbox.
set spoolfile = "+INBOX"
# Alternate email addresses.
alternates [email protected]
# Mailboxes to show in the sidebar.
mailboxes +INBOX \
+archive \
+sent \
+Personal \
+drafts \
# Other special folders.
set mbox = "+archive"
set postponed = "+drafts"
# include body of previous message in reply
set include
# HTML mail
auto_view text/html
alternative_order text/plain text/enriched text/html
# Prompts
unset postpone
set delete
set quit
set fast_reply
# -- Headers --
ignore *
unignore from: to: cc: date: subject:
unhdr_order *
hdr_order from: to: cc: date: subject:
# -- Security --
set certificate_file = ~/.mutt/certificates
# -- Cache --
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
# -- Colors --
source ~/.mutt/colors
# -- Bindings & Macros --
# add the sender to the address book
macro index,pager A "abook --add-email-query"
macro index,pager e "<save-message>=Archive<enter>"
# navigate the sidebar
bind index,pager J sidebar-next
bind index,pager K sidebar-prev
bind index,pager <space> sidebar-open
# motion
bind index gg first-entry
bind index G last-entry
bind index R group-reply
bind index <tab> sync-mailbox
# Saner copy/move dialogs
macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
# Mark all messages as read
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>"
# Sync email
macro index O "<shell-escape>offlineimap<enter>"
macro index o "<shell-escape>offlineimap -qf INBOX<enter>"
# search
bind index N search-opposite
bind pager N search-opposite
# show all
macro index a "<limit>all\n"
# adress book
bind editor <Tab> complete-query
bind editor ^T complete
# Pager
set pager_index_lines = 10
set pager_context = 3
set pager_stop
set menu_scroll
set tilde
unset markers
bind pager k previous-line
bind pager j next-line
bind pager gg top
bind pager G bottom
bind pager R group-reply
# View attachments properly.
bind attach <return> view-mailcap
# urlview
macro pager \Cu "|urlview<enter>"
set quote_regexp = "^( {0,4}[>|:#%]| {0,4}[a-z0-9]+[>|]+)+"
alternative_order text/plain text/enriched text/html
# -- Address book --
set query_command = "abook --mutt-query '%s'"
# -- Sidebar --
set sidebar_delim = " │"
set sidebar_visible = yes
set sidebar_width = 24
# -- Status bar --
set status_chars = " *%A"
set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>"