-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.muttrc
145 lines (114 loc) · 4.46 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
##################
# General settings
##################
# Store message headers locally to speed things up.
# If hcache is a folder, Mutt will create sub cache folders for each account which may speeds things even more up.
set header_cache = ~/.cache/mutt
set message_cachedir = ~/.cache/mutt-messages
# Allow Mutt to open new imap connection automatically.
unset imap_passive
# Keep IMAP connection alive by polling intermittently (time in seconds).
set imap_keepalive = 300
# How often to check for new mail (time in seconds).
set mail_check = 60
set mail_check_stats = yes
set net_inc=5
set sort = threads
set sort_aux = reverse-last-date-received
set editor=vim
set send_charset="utf-8"
# Ctrl-R to mark all as read
macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
# Use space to toggle collapsing of threads
bind index <space> collapse-thread
###########
## Accounts
############
# passwords
source "gpg2 -dq $HOME/.muttpass.gpg |"
# acervin.com
source "~/.mutt/accounts/acervin"
folder-hook =acervin.com/ 'source ~/.mutt/accounts/acervin'
##############################
# Pager 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
# Key bindings
bind pager k previous-line
bind pager j next-line
bind pager gg top
bind pager G bottom
bind pager R group-reply
bind index gg first-entry
bind index G last-entry
#############################
# Sidebar
#############################
#set sidebar_delim = ' │'
set sidebar_delim_chars = "/--"
set sidebar_width = 48
set sidebar_visible = yes
set sidebar_folder_indent = yes
set sidebar_short_path = yes
set sidebar_format="%B %?N?(%N)?%* %S"
set status_chars = " *%A"
set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
macro index b '<enter-command>toggle sidebar_visible<enter><refresh>'
macro pager b '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
bind index,pager <down> sidebar-next
bind index,pager <up> sidebar-prev
bind index,pager <right> sidebar-open
##############################
# HTML Email
##############################
alternative_order text/plain text/html
auto_view text/html
#############################
# Compose
############################
set realname = "Albert Cervin" # who am i?
set envelope_from # which from?
set sig_dashes # dashes before sig
set edit_headers # show headers when composing
set fast_reply # skip to compose when replying
set askcc # ask for CC:
set fcc_attach # save attachments with the body
unset mime_forward # forward attachments as part of body
set forward_format = "Fwd: %s" # format of subject when forwarding
set forward_decode # decode when forwarding
set attribution = "On %d, %n wrote:" # format of quoting header
set reply_to # reply to Reply to: field
set reverse_name # reply as whomever it was to
set include # include message in replies
set forward_quote # include message in forwards
############################
# Colors
###########################
# Palette for use with the Linux console. Black background.
source ~/.mutt/base16.muttrc
# Patch syntax highlighting
color body brightwhite default ^(diff).*
color body white default ^[\-\-\-].*
color body white default ^[\+\+\+].*
color body green default ^[\+].*
color body red default ^[\-].*
color body brightblue default [@@].*
color body brightwhite default ^(Signed-off-by).*
color body brightwhite default ^(Cc)
################################
# PGP
################################
source ~/.mutt/gpg.rc
set crypt_autosign = yes
###############################
# Aliases
###############################
set alias_file = "~/.mutt/aliases"
set sort_alias = alias
set reverse_alias = yes
source $alias_file