-
Notifications
You must be signed in to change notification settings - Fork 0
/
.muttrc_template
136 lines (113 loc) · 4.33 KB
/
.muttrc_template
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
set charset = "UTF-8"
set from = "Firstname Lastname <[email protected]>"
set realname = "Firstname Lastname"
# IMAP settings
# set imap_user = ""
# set imap_pass = ""
# set imap_keepalive = 900
#set smtp_url = "smtp://"
#unset smtp_pass
# Local mailboxes
#set folder = "/local/mail/folders"
#set spoolfile = "/local/mail/folders/Inbox"
#set postponed = "/local/mail/folders/Drafts"
#set record = "/local/mail/folders/Sent"
# Local maildirs
set mbox_type = Maildir
set mask=".*" # otherwise it won't work as expected
set folder = "/local/mail/maildir/"
set spoolfile = "+.Inbox"
set postponed = "+.Drafts"
set record = "+.Sent"
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
# Reading mail
set move = no
set timeout = 10
set mail_check = 10
set sort = date
set sort_aux = date
set mark_old = no
ignore *
unignore Date: From: To: CC: Bcc: Subject: Message-Id:
hdr_order Subject: Date: From: To: CC: Bcc:
set index_format = "%6C %{%b %d} %-15.15L [%Z] %s"
# Composing mail
set editor='vim +"set spell" +"set tw=72" "+silent! /^\s*\n/" +nohl +0'
# Or use emacsclient if I'm in the mood
#set editor='~/bin/emacsclientmutt'
my_hdr Cc: Firstname Lastname <[email protected]>
set include = yes
set forward_format = "Fwd: %s"
set metoo = yes
set sig_dashes = no # my signature contains only my name
# set signature="~/.mutt-signature"
# Colors
color status white blue
color index cyan default "~(~v ~p)"
color index green default ~N # new
color index red default ~D # deleted
color index brightmagenta default ~T # tagged
color index brightyellow default ~F # flagged
color header green default "^Subject:"
color header yellow default "^Date:"
color header yellow default "^To:"
color header yellow default "^Cc:"
color header yellow default "^Bcc:"
color header yellow default "^From:"
color header red default "^X-.*:"
# Pager configuration
set pager_index_lines = 10
set pager_context = 3
set pager_stop
set menu_scroll
set tilde
unset markers
# Misc
set beep_new = yes
set quit = ask-no
set alias_file = /local/mail/mutt_alias
source $alias_file
macro index M "T.*\n;WN;^T.*\n" "Mark all messages as read"
# Safe deletion macros apply for all folders, EXCEPT the 'deleted' folder.
## "Y" is set to 'unsafe delete' (useful over slow imap links).
## Also note the slight difference between 'index' and 'pager' for thread
## delete. The "\ni" will cause mutt to briefly switch to pager mode and
## back to index, causing the thread to uncollapse. It's a trick but as
## a trick goes, it works really well (for me, at least) :)
bind index y delete-message
bind pager y delete-message
folder-hook . 'macro index d <copy-message>=.deleted\ny<delete-message> "Safe Delete"'
folder-hook . 'macro pager d <copy-message>=.deleted\ny<delete-message> "Safe Delete"'
folder-hook . 'macro index \ed \ni<tag-thread><copy-message>=.deleted\ny<delete-message> "Safe delete Thread"'
folder-hook . 'macro pager \ed <tag-thread><copy-message>=.deleted\ny<delete-message> "Safe delete Thread"'
## Really erase if we're using the 'deleted' mail folder.
folder-hook '.deleted' 'macro index d <delete-message> "Delete Message"'
folder-hook '.deleted' 'macro index \ed <delete-thread> "Delete Thread"'
folder-hook '.deleted' 'macro pager d <delete-message> "Delete Message"'
folder-hook '.deleted' 'macro pager \ed <delete-message> "Delete Thread"'
## HTML
auto_view text/html
alternative_order text/plain text/enriched text/html
## Color for diff
#
color body brightred default "^-.*"
color body brightgreen default "^[+].*"
color body brightwhite default "^diff --git.*"
color body brightwhite default "^index [a-f0-9].*"
color body brightyellow default "^@@.*"
#color normal white default
#color body brightwhite default ^[[:space:]].*
#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 ^(\s).*
#color body brightwhite default ^(Signed-off-by).*
#color body brightwhite default ^(Cc)
#
# Use GPGME
set crypt_use_gpgme = yes
# set crypt_autosign = yes