~/.muttrc
This is my configuration file for Mutt, an excellent GPLv2 licensed text-based email client which I highly recommend.
If you are interested, my configuration file is available for download as well.
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
# vim: set et fenc=utf-8 ft=zsh sts=4 sw=4 ts=8 tw=80 :
#
# Author: microfracture / https://linuxious.com
# Updated: 2015-03-13
# =============================================================================
# Initial setup
# =============================================================================
# Set initial paths.
set folder = "~/.mail"
set header_cache = "~/.cache/mutt"
set mailcap_path = "~/.mutt/mailcap"
set sendmail = "/usr/bin/msmtp"
# Mailboxes.
set mbox_type = Maildir
set mbox = +Inbox
set postponed = +Drafts
set record = +Sent
set spoolfile = +Inbox
set trash = +Trash
mailboxes =Inbox \
=Lists/Archlinux \
=Lists/GNUzilla \
=Lists/Libreplanet \
=Junk \
=Sent \
=Trash
# Mailing lists.
subscribe arch-.*@archlinux.org
subscribe bug-gnuzilla@gnu.org
subscribe libreplanet-discuss@libreplanet.org
# Headers.
ignore *
unignore From: Organization: X-PGP-Key: To: Cc: Bcc: Date: Subject:
unhdr_order *
hdr_order From: Organization: X-PGP-Key: To: Cc: Bcc: Date: Subject:
my_hdr X-PGP-Key: https://linuxious.com/pubkey.asc
my_hdr X-No-Archive: Yes
# =============================================================================
# Keybinds
# =============================================================================
bind index <left> sidebar-prev
bind index <right> sidebar-next
bind index <space> sidebar-open
macro index,pager y "<change-folder>?<toggle-mailboxes>" "incoming mail"
macro index,pager <esc><F2> "| sa-learn --spam --single<enter><save-message>=spam<enter>" "learn spam"
macro index,pager <esc><F3> "| sa-learn --ham --single<enter>" "learn ham"
# =============================================================================
# Scores
# =============================================================================
unscore *
score ~A +5 # Initial.
score "~f '@defectivebydesign.org'" +2 # DBD +2.
score "~f '@eff.org'" +2 # EFF +2.
score "~f '@fsf.org'" +2 # FSF +2.
score "~t arch-security@archlinux.org" +5 # Security.
score "~t debian-security-announce@lists.debian.org" +5 # Security.
score "~t slackware-security@slackware.com" +5 # Security.
score "~F" 1 # Flagged.
score "~G" 2 # GPG encrypted.
score "~g" 1 # GPG signed.
score "~l" 1 # Mailing list.
score "~p" 1 # Addressed to me.
score "~s *****SPAM*****" -10 # Auto-delete spam.
# =============================================================================
# Settings
# =============================================================================
alternative_order text/plain text/enriched text/html
auto_view application/pgp-signature
auto_view text/html
set crypt_autosign = yes
set crypt_replyencrypt = yes
set crypt_replysign = yes
set crypt_replysignencrypted = yes
set crypt_timestamp = yes
set crypt_use_gpgme = yes
set crypt_verify_sig = yes
set date_format = "%m/%d"
set delete = yes
set edit_headers = yes
set editor = "vim -c 'set syntax=mail ft=mail enc=utf-8'"
set fast_reply = yes
set index_format = " %D [%Z] %-22.20L %-0.60s"
set mail_check = 60
set pager_format = "Message: %C of %m %> %P"
set realname = "microfracture"
set score_threshold_delete = 0
set send_charset = "utf-8"
set sidebar_shortpath = yes
set sidebar_visible = yes
set sidebar_width = 20
set sort = threads
set sort_aux = date-sent
set sort_browser = date
set strict_threads = yes
unset ssl_use_sslv2
unset ssl_use_sslv3
unset mark_old
unset help
unset use_domain
unset user_agent
# =============================================================================
# Colors
# =============================================================================
color header color75 default "(^From:.*|^Organization:.*|^X-PGP-Key:.*|^To:.*|^Cc:.*|^Bcc:.*|^Date:.*|^Subject:.*)"
color attachment color240 default
color error brightred default
color indicator default color240
color message white default
color signature color240 default
color status default color240
color tree color75 default
color index color011 default ~F
color index color61 default ~Q
color index white default ~A
color index yellow default ~T
color index color156 default ~N
color index color240 default ~D
color index green default ~G
color index brightcyan default "~n 7-9"
color index brightmagenta default "~n 10-20"
color quoted color108 default
color quoted1 color116 default
color quoted2 color71 default
color body brightyellow default " [;:]-*[})>{(<|]"
color body color74 default "(http|https|ftp|news)://[^ \"\t\r\n]*"
color body color74 default "[-a-z_0-9.]+@[-a-z_0-9.]+"
color body color74 default "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
color body cyan default "(^|[[:space:][:punct:]])\\*[^*]+\\*([[:space:][:punct:]]|$)"
color body cyan default "(^|[[:space:][:punct:]])_[^_]+_([[:space:][:punct:]]|$)"
color sidebar_new brightyellow default