forked from peikk0/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.muttrc
243 lines (174 loc) · 5.44 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
# peikk0's mutt config
# {{{ Reset everything
reset all
unhook *
ignore *
unhdr_order *
# }}}
# {{{ User variables, override them in local.pre.rc
set my_name = "Pierre Guinoiseau"
set my_signature = ~/.mutt/signature
set my_address = [email protected]
set my_alternates = '^pierre@guinoiseau\.(eu|nz)|master@obiwankeno\.be|(root|admin|(host|post|web)master|g|pierre)@yggdrasil\.nz$'
set my_user = $my_address
set my_password = SET_ME_IN_VARS_RC
set my_imap_server = imap://imap.guinoiseau.nz/
set my_smtp_server = smtp://[email protected]:587/
source `FILE=~/.mutt/local.pre.rc; [ ! -s "$FILE" ] && FILE=/dev/null; echo "$FILE"`
# }}}
# {{{ Default identity
set realname = $my_name
set from = $my_address
set signature = $my_signature
set crypt_autosign = yes
alternates $my_alternates
# }}}
# {{{ SMTP
set smtp_url = $my_smtp_server
set smtp_pass = $my_password
# }}}
# {{{ IMAP
set imap_user = $my_user
set imap_pass = $my_password
set folder = $my_imap_server
set spoolfile = =INBOX
mailboxes =INBOX
set record = =Sent
set postponed = =Drafts
set trash = =Trash
set maildir_trash = yes
set ssl_use_tlsv1_2 = yes
set ssl_force_tls = yes
set ssl_starttls = yes
set copy = yes
set move = no
set mark_old = yes
set imap_check_subscribed = yes
set imap_list_subscribed = yes
set mail_check = 60
set timeout = 60
set imap_keepalive = 30
set imap_idle = yes
set imap_passive = no
# }}}
# {{{ Locales and encodings
set charset = UTF-8
set config_charset = utf-8
set send_charset = utf-8
set assumed_charset = utf-8:iso-8859-15:iso-8859-1:us-ascii
set attach_charset = utf-8:iso-8859-15:iso-8859-1:us-ascii
set allow_8bit = yes
set rfc2047_parameters = yes
# }}}
# {{{ Paths
set header_cache = ~/.mutt/cache/headers
set certificate_file = ~/.mutt/certificates
# }}}
# {{{ Headers
unignore From: To: Subject: Date: Organization: Newsgroups: CC: BCC: Reply-To: Mail-Followup-To: X-Mailer: User-Agent: X-Operating-System: Message-ID: In-Reply-To: List-Id: X-Spam-Flag: X-Spam-Level: rt-ticket: rt-originator:
hdr_order Message-ID In-Reply-To Date From Organization To Cc Bcc Newsgroups Reply-To Mail-Followup-To List-Id User-Agent X-Mailer X-Operating-System X-Spam-Flag X-Spam-Level rt-ticket rt-originator Subject
# }}}
# {{{ MIME
auto_view text
mime_lookup application/octet-stream
# Default order: text/plain, text/html
message-hook '.' 'unalternative_order *; alternative_order text/plain text/html'
# Yahoo Mail has a broken text/plain
message-hook '~f @yahoo\.(com\|fr)$' 'unalternative_order *; alternative_order text/html'
# }}}
# {{{ PGP
set pgp_sign_as = 0x8D1C3224FAB5BA48
set crypt_autopgp = yes
set crypt_autosign = yes
set crypt_replysign = yes
set crypt_replysignencrypted = yes
set crypt_use_gpgme = yes
set crypt_verify_sig = yes
set pgp_use_gpg_agent = yes
set pgp_verify_sig=yes
message-hook '!(~g|~G) ~b"^-----BEGIN\ PGP\ (SIGNED\ )?MESSAGE"' "exec check-traditional-pgp"
# }}}
# {{{ Attachments
attachments +A */.*
attachments -A text/x-vcard application/pgp.*
attachments -A application/x-pkcs7-.*
attachments +I text/plain
attachments -A message/external-body
attachments -I message/external-body
# }}}
# {{{ Index
set index_format = "%6C %Z [%D] %-25.25L %s"
set date_format = "%Y-%m-%d %H:%M:%S"
set sort = threads
set sort_aux = last-date-received
#set sort_re = yes
# }}}
# {{{ Viewing
set visual = builtin
set pager_index_lines = 15
set pager_context = 10
set pager_stop = yes
set smart_wrap = yes
set markers = yes
set implicit_autoview = yes
auto_view text/html application/x-pgp-message
alternative_order text/plain text/enriched text text/html
set mailcap_path = ~/.mailcap
set tilde = yes
# }}}
# {{{ Editing
# set editor = "vim + -c 'set ft=mail tw=72' -c ':0/^$' -c ':nohls'"
set editor = "vim"
set edit_headers = yes
set fast_reply = yes
set reply_to = yes
set forward_format = "Fwd: %s"
set mime_forward = ask-yes
set reverse_name = yes
set reverse_realname = no
set abort_nosubject = ask-yes
set abort_unmodified = ask-yes
set include = yes
set attribution = "On %d, %n <%a> wrote:\n"
set user_agent = yes
my_hdr X-Operating-System: `uname -s`
# }}}
# {{{ Aliases
set alias_file = ~/.mutt/aliases
source $alias_file
set sort_alias = alias
set reverse_alias = yes
set query_command = "abook --mutt-query '%s'"
# }}}
# {{{ Bindings
macro index <F2> "<change-folder>=INBOX<return>"
macro index <F3> "<change-folder>=Sent<return>"
macro index <F4> "<change-folder>=Junk<return>"
macro index <F5> "<change-folder>=Drafts<return>"
macro index <F6> "<change-folder>=Trash<return>"
bind index,pager F flag-message
bind pager j next-line
bind pager k previous-line
macro index,pager y "<change-folder>?<toggle-mailboxes>" "show incoming mailboxes list"
bind browser y exit
bind index,pager <pageup> half-up
bind index,pager <pagedown> half-down
macro generic,index,pager \Ca "<shell-escape>abook<return>" "launch abook"
macro index,pager A "s=Archives/`date +%Y`<return>" "move to archives folder"
macro index,pager \Cx "<tag-pattern>~N|~O<return><tag-prefix><clear-flag>N<untag-pattern>~T<return>" "mark all new messages as read"
macro index,pager S "s=Junk<return>" "move to junk/spam folder"
# }}}
# {{{ Misc
set beep = no
set wait_key = no
set menu_scroll = yes
set xterm_set_titles = yes
set xterm_title = "Mutt: %f [%?m?%m messages&no messages?%?n?, %n NEW?]"
# }}}
# {{{ Theme
source ~/.mutt/themes/akoya.rc
# }}}
# {{{ Local overrides
source `FILE=~/.mutt/local.post.rc; [ ! -s "$FILE" ] && FILE=/dev/null; echo "$FILE"`
# }}}
# vim:ft=muttrc:fdm=marker: