muttrc - dotfiles - These are my dotfiles. There are many like it, but these are mine.
(HTM) git clone git://jay.scot/dotfiles
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
---
muttrc (3896B)
---
1 # info
2 set my_user = 'me@jay.scot'
3 set my_pass = `pass tech/mailbox.org | head -n1`
4 set realname = 'Jay Scott'
5 set from = 'me@jay.scot'
6
7 # SMTP settings
8 set smtp_pass = $my_pass
9 set smtp_url = smtps://$my_user@smtp.mailbox.org
10 set ssl_force_tls = yes
11
12 # general
13 set envelope_from = yes
14 set use_from = yes
15 set editor = "nvim"
16 set markers = no
17 set mark_old = no
18 set delete = yes
19 set forward_format = "Fwd: %s"
20 set fcc_attach = no
21 set edit_headers = yes
22 set fast_reply = yes
23 set include = yes
24
25 # gpg encryption
26 source ~/.config/mutt/gpg.rc
27 bind compose p pgp-menu
28 set pgp_use_gpg_agent = yes
29 set pgp_sign_as = 0726AF07C73389E1E4475B7EC88BBC696A39CCB0
30 set pgp_timeout = 3600
31 set crypt_autosign = yes
32 set crypt_replyencrypt = yes
33
34 # html emails
35 auto_view text/html
36 alternative_order text/plain text/html
37
38 # unset
39 unset wait_key
40 unset allow_8bit
41
42 # paths
43 set folder = ~/.mail
44 set header_cache = ~/.config/mutt/cache/headers
45 set message_cachedir = ~/.config/mutt/cache/bodies
46 set mailcap_path = ~/.config/mutt/mailcap
47 set alias_file = ~/.config/mutt/aliases
48 set tmpdir = ~/.cache/
49
50 set spoolfile = "+jay/Inbox"
51 set postponed = "+jay/Drafts"
52 set record = "+jay/Sent"
53
54 # inbox
55 mailboxes +jay
56 mailboxes ! `echo ~/.mail/jay/*`
57
58 # mailing lists
59 mailboxes +mailinglists
60 mailboxes ! `echo ~/.mail/ml/*`
61
62 # feeds
63 mailboxes +feeds
64 mailboxes ! `echo ~/.mail/feeds/*`
65
66 set sort_alias = alias
67 set reverse_alias = yes
68 source $alias_file
69
70 # macros
71 bind index gg first-entry
72 bind index G last-entry
73 bind index <space> collapse-thread
74 macro index \Cr "T~U<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" "mark all messages as read"
75 macro index o "<shell-escape>fdm -f ~/.config/fdm/config fetch<enter>" "run fdm to sync all mail"
76 macro index C "<copy-message>?<toggle-mailboxes>" "copy a message to a mailbox"
77 macro index A "<save-message>=jay/archive<enter><enter><sync-mailbox><enter>" "save to archive"
78 macro index M "<save-message>?<toggle-mailboxes>" "move a message to a mailbox"
79
80 # sorting
81 set sort = threads
82 set sort_aux = reverse-date
83 set pager_index_lines = 15
84 set pager_context = 1
85 set index_format = '%Z | %{%b %d %Y} | %-15.15F | %s'
86
87 # sidebar
88 set mail_check_stats = yes
89 set sidebar_visible = yes
90 set sidebar_width = 25
91 set sidebar_short_path = yes
92 set sidebar_folder_indent = yes
93 set sidebar_format = "%B%* %?N?%N?"
94 set sidebar_divider_char = │
95 bind index,pager \Ck sidebar-prev
96 bind index,pager <tab> sidebar-next
97 bind index,pager <backtab> sidebar-prev
98 bind index,pager \Cl sidebar-open
99
100 # disable help menu
101 set help = no
102
103 # status bar
104 set sidebar_delim_chars = "/"
105 set status_chars = " *%A"
106 set status_format = "───[ Folder: %f ]───[%r%m messages%?n? (%n new)?%?d? (%d to delete)?%?t? (%t tagged)? ]───%>─%?p?( %p postponed )?───"
107
108 # default
109 color normal color223 color0
110
111 # status bar
112 color status color8 color0
113
114 # highlight bar
115 color indicator color223 color237
116
117 # replied to
118 color index color2 color0 ~Q
119
120 # email info header
121 color header color11 color0 "^(To:|From:|Date:|^Subject:)"
122
123 # web links
124 color body color2 color0 "https?://[^ ]+"
125 color body color2 color0 "www.[^ ]+"
126
127 # email addresss
128 color body color2 color0 "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
129 color body color2 color0 "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
130
131 # image links
132 color body color2 color0 "\\[image\\ [0-9]+\\]"
133
134 # sidebar
135 color sidebar_new bold color11 color0
136 color sidebar_divider bold color2 color0
137
138 # patch syntax
139 color body brightwhite default ^[[:space:]].*
140 color body brightwhite default ^(diff).*
141 color body white default ^[\-\-\-].*
142 color body white default ^[\+\+\+].*
143 color body green default ^[\+].*
144 color body red default ^[\-].*
145 color body brightblue default [@@].*
146 color body brightwhite default ^(\s).*
147 color body brightwhite default ^(Signed-off-by).*
148 color body brightwhite default ^(Cc)