-
Notifications
You must be signed in to change notification settings - Fork 0
/
.muttrc
73 lines (63 loc) · 2.82 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
set from = nick.diego@gmail.com
set smtp_url = "smtp://nick.diego@smtp.gmail.com:587/"
set realname = "Nick Yamane"
set editor = 'vim'
set sendmail = "/usr/bin/msmtp"
# Don't let your firewall kill your idle connection.
set imap_keepalive = 900
# Do not copy sent mail. Gmail smtp already does this.
set copy = no
set mbox_type=Maildir
set folder=~/Maildir
set spoolfile = +INBOX #or +[Gmail]/Important
#set spoolfile = /var/spool/mail/nick
set postponed = +[Gmail]/Drafts
# Cache
set header_cache = ~/.mutt/cache/headers
set message_cachedir = ~/.mutt/cache/bodies
set certificate_file = ~/.mutt/certificates
# Gmail style keybindings
bind editor <space> noop
bind index,pager c mail #Compose
macro index,pager e "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive conversation"
bind generic x tag-entry #Select Conversation
bind index x tag-thread #Select Conversation
bind pager x tag-message #Select Conversation
bind index,pager s flag-message #Star a message
macro index,pager + <save-message>=[Gmail]/Important<enter><enter> "Mark as important"
#macro index,pager ! <save-message>=[Gmail]/Spam<enter><enter> "Report spam"
bind index,pager a group-reply #Reply all
bind index,pager \# delete-thread #Delete
bind index,pager l copy-message #Label
bind index,pager v save-message #Move to
macro index,pager I <set-flag>O "Mark as read"
macro index,pager U <clear-flag>O "Mark as unread"
macro index,pager ga "<change-folder>=[Gmail]/All Mail<enter>" "Go to all mail"
macro index,pager gs <change-folder>=[Gmail]/Starred<enter> "Go to 'Starred'"
macro index,pager gd <change-folder>=[Gmail]/Drafts<enter> "Go to 'Drafts'"
macro index,pager gl <change-folder>? "Go to 'Label'"
macro index,pager gi <change-folder>=INBOX<enter> "Go to inbox"
macro index,pager gt "<change-folder>=[Gmail]/Sent Mail<enter>" "Go to 'Sent Mail'"
folder-hook +INBOX 'macro index,pager y "<save-message>=[Gmail]/All Mail<enter><enter>" "Archive conversation"'
folder-hook +[Gmail]/Trash macro index,pager y <save-message>=INBOX<enter><enter> "Move to inbox"
folder-hook +[Gmail]/Starred bind index,pager y flag-message #"Toggle star"
# This should be ' »›-‹L' to match Gmail, but $to_chars breaks on unicode.
set to_chars = ' +>-<L'
# Don't move read mail.
set move = no
# Sort by newest conversation first.
set sort = reverse-threads
set sort_aux = last-date-received
# Contact aliases, could also use `goobook`.
set alias_file = ~/.mutt/aliases
set sort_alias = alias
set reverse_alias = yes
set reverse_name = yes
# mailcap stuff
set mailcap_path = ~/.mailcap
auto_view text/x-diff
auto_view text/x-patch
set allow_ansi
# mailboxes
# auto generated by 'offlineimap'
source $HOME/.mutt/mailboxes