-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmuttrc
166 lines (139 loc) · 4.8 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
### IMAP native ###
set imap_user = yourusername@gmail.com
set from = "$imap_user"
set use_from=yes
set imap_pass = onetimepasswordgoeshere
set folder = imaps://yourusername@imap.gmail.com/
#mailboxes =INBOX
# spoolfile is the default view in mutt (inbox)
set spoolfile = "+INBOX"
# mbox is the 'all mail' folder (move to folder on save)
set mbox = "+[Gmail]/All Mail"
# record is the sent messages folder (unneeded, gmail automagically saves any outgoing mail)
#set record = "+[Gmail]/Sent Mail"
unset record
set copy=no # dont save sent mail locally
# trash is garbage, no support in default mutt
#set trash = "+[Gmail]/Trash"
# set drafts folder
set postponed = "+[Gmail]/Drafts"
set imap_check_subscribed
# if hcache is a folder, Mutt will create sub cache folders for each account which may speeds things even more up
set header_cache = ~/.mutt/hcache
# allow Mutt to open new imap connection automatically
unset imap_passive
# keep imap connection alive by polling intermittently (time in seconds)
set imap_keepalive = 300
# how often to check for new mail (time in seconds)
set mail_check = 120
### SMTP native ###
set smtp_url=smtps://$imap_user:$imap_pass@smtp.gmail.com
#TODO look at folder-hooks to use both gmail accounts
# crazy keybindings for vimness
bind pager j next-line
bind pager k previous-line
bind generic l select-entry
bind pager l view-attachments
bind index l display-message
bind attach l view-attach
bind compose l view-attach
bind pager h exit
bind index h change-folder
bind attach h exit
bind pager <down> next-line
bind pager <up> previous-line
bind generic <right> select-entry
bind index <right> display-message
bind pager <right> view-attachments
bind attach <right> view-attach
bind compose <right> view-attach
bind pager <left> exit
bind index <left> change-folder
bind attach <left> exit
bind generic,index G last-entry
bind pager G bottom
bind generic,index gg first-entry
bind pager gg top
bind index,pager \Cf next-page
bind index,pager \Cb previous-page
bind index,pager,attach H display-toggle-weed
# To got to the inbox just press ,
macro index,pager , '<change-folder>!^M'
## Theme kindly inspired from
## http://nongeekshandbook.blogspot.ie/2009/03/mutt-color-configuration.html
## Colours for items in the index
color index brightcyan black ~N
color index brightred black ~O
color index brightyellow black ~F
color index black green ~T
color index brightred black ~D
mono index bold ~N
mono index bold ~F
mono index bold ~T
mono index bold ~D
## Highlights inside the body of a message
## URLs
color body brightgreen black "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
color body brightgreen black "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
mono body bold "(http|ftp|news|telnet|finger)://[^ \"\t\r\n]*"
mono body bold "mailto:[-a-z_0-9.]+@[-a-z_0-9.]+"
## Email addresses
color body brightgreen black "[-a-z_0-9.%$]+@[-a-z_0-9.]+\\.[-a-z][-a-z]+"
## Header
color header green black "^from:"
color header green black "^to:"
color header green black "^cc:"
color header green black "^date:"
color header yellow black "^newsgroups:"
color header yellow black "^reply-to:"
color header brightcyan black "^subject:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header red black "^x-spam-rule:"
color header green black "^x-mailer:"
color header yellow black "^message-id:"
color header yellow black "^Organization:"
color header yellow black "^Organisation:"
color header yellow black "^User-Agent:"
color header yellow black "^message-id: .*pine"
color header yellow black "^X-Fnord:"
color header yellow black "^X-WebTV-Stationery:"
color header yellow black "^X-Message-Flag:"
color header yellow black "^X-Spam-Status:"
color header yellow black "^X-SpamProbe:"
color header red black "^X-SpamProbe: SPAM"
## Coloring quoted text - coloring the first 7 levels
color quoted cyan black
color quoted1 yellow black
color quoted2 red black
color quoted3 green black
color quoted4 cyan black
color quoted5 yellow black
color quoted6 red black
color quoted7 green black
## Default color definitions
#color hdrdefault white green
color signature brightmagenta black
color indicator black cyan
color attachment black green
color error red black
color message white black
color search brightwhite magenta
color status brightyellow blue
color tree brightblue black
color normal white black
color tilde green black
color bold brightyellow black
#color underline magenta black
color markers brightcyan black
## Colour definitions when on a mono screen
mono bold bold
mono underline underline
mono indicator reverse