forked from Donearm/configs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.muttrc
300 lines (270 loc) · 12.4 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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Donearm's personal .muttrc (Mutt 0.92.5)
#
# Note: $folder should be set _before_ any other path vars where `+' or `='
# is used because paths are expanded when parsed
#
set folder=~/Maildir # where i keep my mailboxes
set folder_format="%2C %t %N %f"
set realname="Gianluca Fiore"
set use_envelope_from=yes # force same address in envelope as in From:
set abort_unmodified=yes # automatically abort replies if I don't
# change the message
set alias_file=~/.mail_aliases # where I keep my aliases
set alias_format="%4n %2f %t %-10a %r"
set allow_8bit # never do Q-P encoding on legal 8-bit chars
#set arrow_cursor # use -> instead of hiliting the whole line
set sleep_time = 0 # make folders switch almost instantaneous
# a regexp that specifies alternate addresses where you receive mail
alternates ^forod.g@gmail\\.com$ ^gianluca1181@yahoo\\.it$ ^kinetic8@live\\.com$
set attach_format="%u%D%I %t%4n %T%.40d%> [%.7m/%.10M, %.6e%?C?, %C?, %s] "
set attach_split
set date_format="%a %d %b, %Y at %H:%M:%S %Z"
set ignore_list_reply_to=yes
set imap_authenticators="gssapi:cram-md5:digest-md5:login" # authentication methods to try for imap authentication
set imap_passive # do not open new imap connections to check for new mail
set imap_peek # do not mark mail as read whenever fetching a message from the imap server. Might make closing mutt a tad slower
set mask="!^\\.[^.]" # filebrowser mask
set ssl_usesystemcerts # mutt will use CA certificates in the system-wide certificate store
set send_charset="utf-8:iso-8859-1:iso-8859-15:us-ascii" # a list of character sets for outgoing messages
#set ascii_chars # use ASCII instead of ACS chars for threads
#set askbcc
#set askcc
set attribution="On %d, %n wrote:" # how to attribute replies
set autoedit # go to the editor right away when composing
#set auto_tag # always operate on tagged messages
set charset="utf-8" # character set for your terminal
set noconfirmappend # don't ask me if i want to append to mailboxes
#set confirmcreate # prompt when creating new files
set copy=yes # always save a copy of outgoing messages
set delete=ask-yes # purge deleted messages without asking
set edit_headers # let me edit the message header when composing
#set editor="emacs -nw" # editor to use when composing messages
set editor="vim -c 'set tw=72 et' \
-c 'set fo=tcrq' \
-c 'set syntax=mail' \
-c ':0;/^To: '\
-c 'set spell'\
-c 'redraw' \
-c 'set nobackup'"
set bounce=yes # don't ask about bouncing messages, just do it
#set fast_reply # skip initial prompts when replying
#set fcc_attach # keep attachments in copies of sent messages?
#set force_name # fcc by recipient, create if mailbox doesn't exist
set forward_decode # weed and MIME decode forwaded messages
set forward_format="[Fwd: %s]" # subject to use when forwarding messages
#set forward_quote # quote the header and body of forward msgs
#set index_format="%4C %Z %{%m/%d} [%2N] %-15.15F (%4c) %s"
set index_format="%4C %Z %{%d/%m/%Y} %-15.15F (%4c) %s" # format of the index
set hdrs # include `my_hdr' lines in outgoing messages
#set header # include message header when replying
set help # show the help lines
set history=20 # number of lines of history to remember
set hostname="`hostname`" # my DNS domain
set include=ask-yes # always include messages when replying
set indent_string="> " # how to quote replied text
set mailcap_path="~/.mailcap:/usr/local/share/mailcap"
set nomark_old # i don't care about whether a message is old
set mail_check=10 # how often to poll for new mail
set mbox="~/Maildir/" # where to store read messages
set mbox_type="maildir"
set smart_wrap
set wrapmargin=5
#set menu_scroll # no implicit next-page/prev-page
#set metoo # remove my address when replying
set mime_forward # use message/rfc822 type to forward messages
set move=yes # don't ask about moving messages, just do it
#set pager=less # some people prefer an external pager
#set pager_context=3 # no. of lines of context to give when scrolling
#set pager_format="-%S- %-20.20f %s" # format of the pager status bar
set pager_index_lines=6 # how many index lines to show in the pager
#set pager_stop # don't move to the next message on next-page
set postpone=ask-yes
set postponed="+.Drafts" # mailbox to store postponed messages in
#set post_indent_string='---end quoted text---'
set print=ask-no # ask me if I really want to print messages
set print_command="lpr -P Photosmart_C6300" # how to print things
set noprompt_after # ask me for a command after the external pager exits
set quote_regexp="^([A-Za-z ]+>|[]%>:|}-][]>:|}-]*)"
set read_inc=25 # show progress when reading a mailbox
set recall=ask-yes # prompt to recall postponed messages
set record="+.Sent/" # default location to save outgoing mail
set reply_to # always use reply-to if present
# how to identify replies in the subject:
set reply_regexp="^((\ [Rr][Eeé][ | ]?:|\
[Rr][Ee] |\
Re\\[[0-9]+\\]:|\
Re\\([0-9]+\\):|\
Re\\^[0-9]+:|\
AW:|\
SV:|\
Ad:|\
Odp:|\
Obj\\.? ?:|\
Re :|\
Antw(ort)?:|\
R[eé]f\\. :|\
Rép\\. :|\
R[eé]p\\.?:|\
F[Ww][Dd]? ?:|\
T[Rr] ?:|\
Trans\\. :\
)[ \t| ]*)+"
#set resolve # move to the next message when an action is performed
set reverse_alias # attempt to look up my names for people
set reverse_name # use my address as it appears in the message i am replying to
set reverse_realname
set nosave_empty # remove files when no messages are left
#set save_name # save outgoing messages by recipient, if the
#set sendmail="/usr/lib/sendmail -oi -oem" # how to deliver mail
set sendmail="/usr/bin/msmtp"
#set shell="/bin/zsh" # program to use for shell escapes
set signature="~/.signature" # file which contains my signature
set sort=date # primary sorting method
set sort_aux=date-received # how to sort subthreads
#set sort_aux=last-date # date of the last message in thread
set sort_browser=unsorted # how to sort files in the dir browser
set spoolfile="~/Maildir/" # where my new mail is located
#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 )?───"
set status_format="In:%f [Msgs:%?M?%M/?%m%?n? New:%n?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b? %l]---(%s)-%>-(%P)---"
#set status_on_top # some people prefer the status bar on top
#set strict_threads # don't thread by subject
set tilde # virtual lines to pad blank lines in the pager
#set timeout=0 # timeout for prompt in the index menu
set tmpdir="/tmp" # where to store temp files
#set to_chars=" +TCF"
#set use_8bitmime # enable the -B8BITMIME sendmail flag
set nouse_domain # don't qualify local addresses with $domain
#set use_from # always generate the `From:' header field
set implicit_autoview=no # if yes, pager will show parts having a mailcap viewer
set visual=vim # editor invoked by ~v in the builtin editor
#set nowait_key # prompt when a pipe returns normal status
set write_inc=25 # show progress while writing mailboxes
# only enable the following IFF you have sendmail 8.8.x or you will not
# be able to send mail!!!
set dsn_notify='failure,delay' # when to return an error message
set dsn_return=hdrs # what to return in the error message
set header_cache="/tmp/mutt_headers/" # cache database path for mail headers
set ts_enabled # set terminal status line and icon name
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Pgp settings
set pgp_strict_enc # use Q-P encoding when needed for PGP
set pgp_verify_sig=ask-yes # ask to verify message signatures
set pgp_entry_format="%4n %t%f %4l/0x%k %-4a %2c %u"
set pgp_use_gpg_agent
set pgp_replyencrypt
set pgp_sign_as="0xE0399C72"
set pgp_timeout=1800
set pgp_sort_keys=address
set pgp_decode_command="/usr/bin/gpg %?p?--passphrase-fd 0? --no-verbose --quiet --batch --output - %f"
set pgp_verify_command="/usr/bin/gpg --no-verbose --quiet --batch --output - --verify %s %f"
set pgp_decrypt_command="/usr/bin/gpg --passphrase-fd 0 --no-verbose --quiet --batch --output - %f"
set pgp_clearsign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - --passphrase-fd 0 --armor --textmode --clearsign %?a?-u %a? %f"
set pgp_sign_command="/usr/bin/gpg --no-verbose --batch --quiet --output - --passphrase-fd 0 --armor --detach-sign --textmode %?a?-u %a? %f"
set pgp_encrypt_sign_command="pgpewrap /usr/bin/gpg --passphrase-fd 0 --batch --quiet --no-verbose --textmode --output - --encrypt --sign %?a?-u %a? --armor --always-trust -- -r %r -- %f"
set pgp_encrypt_only_command="pgpewrap /usr/bin/gpg --batch --quiet --no-verbose --output - --encrypt --textmode --armor --always-trust -- -r %r -- %f"
set pgp_import_command="/usr/bin/gpg --no-verbose --import -v %f"
set pgp_export_command="/usr/bin/gpg --no-verbose --export --armor %r"
set pgp_verify_key_command="/usr/bin/gpg --no-verbose --batch --fingerprint --check-sigs %r"
set pgp_list_secring_command="/usr/bin/gpg --no-verbose --batch --quiet --with-colons --list-secret-keys %r"
set pgp_list_pubring_command="/usr/bin/gpg --no-verbose --batch --quiet --with-colons --list-keys %r"
set pgp_good_sign = "^gpg: Good signature from"
set pgp_autoencrypt=no
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Header fields I don't normally want to see
#
ignore * # this means "ignore all lines by default"
## I do want to see these fields, though!
#
unignore From: Date: To: CC: BCC: Subject: Reply-To: Content-Type: \
Organization: X-Organization: X-Operating-System: X-Mailer: User-Agent: \
X-Disclaimer: X-Editor: X-Face: X-Spam-Status: X-Spam-Level: Message-ID: \
X-Url Mail-Followup-To:
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Key bindings
#
# maps:
# alias alias menu
# attach attachment menu
# browser directory browser
# compose compose menu
# index message index
# pgp pgp menu
# postpone postponed message recall menu
# generic generic keymap for all of the above
# editor line editor
# pager text viewer
#
## Index
# vi-like movements
bind index gg first-entry
bind index G last-entry
bind index <space> collapse-thread
# rebinding those because gg overlaps group-reply
bind index R group-reply
bind index p recall-message
# move a message to a maildir
macro index M "<save-message>?<toggle-mailboxes>" "move message to a maildir"
# simulate the old browse-url function
macro index \cb "<pipe-message> urlview<Enter>"
# save message to ~
macro index \es "<pipe-message>cat > ~/" "save message as"
# Mark all New and Old message as read
macro index A "<tag-pattern>~U<enter>\
<tag-prefix><clear-flag>N\
<tag-prefix><clear-flag>O\
<untag-pattern>~T<enter>" \
"Mark all as read"
# imitate the old search-body function
macro index \eb '/~b ' 'search in message bodies'
# use Tab and Esc-Tab to move from an Old message to a New or Old one
# instead than from New to New
bind index \t next-unread
bind index \e\t previous-unread
# simulate the old url menu
macro index \cb |urlview\n 'call urlview to extract URLs out of a message'
## Compose
# Aspell macros
macro compose i ":set ispell='/usr/bin/aspell -d it -x check'\n;<ispell>"
macro compose I ":set ispell='/usr/bin/aspell -d en -x check'\n;<ispell>"
## Pager
# use Tab and Esc-Tab to move from an Old message to a New or Old one
# instead than from New to New
bind pager \t next-unread
bind pager \e\t previous-unread
# simulate the old url menu
macro pager \cb |urlview\n 'call urlview to extract URLs out of a message'
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Specify the order of the headers to appear when displaying a message
#
# hdr_order <hdr1> [ <hdr2> ... ]
#
unhdr_order * # forget the previous settings
hdr_order date from subject to cc bcc
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Identify mailing lists I subscribe to
lists ^[email protected]$
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
#
# Automatically use entries from ~/.mailcap to view these MIME types
#
# auto_view <type> [ <type> ... ]
auto_view text/html
# multipart html/text messages
alternative_order text/plain text/html
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Loading hooks file
source ~/.mutt/hooks
# Source list of mailboxes
source ~/.mutt/mailboxes
# load the aliases
source ~/.mail_aliases
# My color theme of choice
source ~/.mutt/jac01-colors.muttrc
# EOF