-
Notifications
You must be signed in to change notification settings - Fork 1
/
.muttrc
152 lines (131 loc) · 4.62 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
set editor="vim"
set pgp_verify_sig=yes #在页中不显示 pgp
set status_on_top #在顶部显示状态行
set pager_format="%-10.10i %[!%a %b %d %R]"
set date_format="!%a %b %d %H:%M "
set folder_format="%3C %t%N %F %-8.8u %-8.8g %8s %d %f"
set status_format="-%r-Mutt: %f [Msgs:%?M?%M/?%m%?n? New:%n?%?o? Old:%o?%?d? Del:%d?%?F? Flag:%F?%?t? Tag:%t?%?p? Post:%p?%?b? Inc:%b?%?l? %l?]----%>-(%P)---"
set index_format="%4C %Z %D %?X?%X& ? %-18.18L [%4c] %s"
set mbox_type=Maildir
set folder = "~/.mail/"
set mbox=+gmail/inbox
set spoolfile=+gmail/inbox
set postponed="+drafts"
set header_cache="~/.mail/cache/header"
set mask="!^\\.[^.]"
unset record
folder-hook gmail set [email protected]
set sendmail="/usr/bin/msmtp"
set envelope_from=yes
set use_from=yes
set realname="yangbo"
macro generic "<esc>1" ":set [email protected] realname=ggarlic"
set include=yes
set indent_str="> "
set signature = ~/.mail/mutt_signature
set quit=ask-yes
set sort = threads
set sort_aux = reverse-last-date-received
set sort_re
#set sort_browser=reverse-date
set ascii_chars=yes
set pager_stop
set menu_scroll
set fast_reply
set reply_regexp="^(re([\[0-9\]+])*|aw|回复)(:[ \t]|:)"
set pager_index_lines=10
set edit_headers=yes
set wait_key=no
set beep_new=yes
set check_new=yes
#set recall=no
set mime_forward=yes
set mime_forward_rest=yes
#faster
set header_cache="~/.mail/.header_cache/"
set maildir_header_cache_verify=no
# Charset settings
set rfc2047_parameters=yes
# ---------------------Key bindings----------------------------------
bind attach s noop
bind index g noop
bind pager g noop
bind attach i exit
bind attach space view-attach
bind index gg first-entry
bind index G last-entry
bind index \cf next-page
bind index \cb previous-page
bind index j next-entry
bind index k previous-entry
bind pager j next-line
bind pager k previous-line
bind pager <Up> previous-line
bind pager <Down> next-line
bind pager gg top
bind pager G bottom
bind pager,index R group-reply
bind pager,index r reply
bind index \Cx sync-mailbox
bind editor <space> noop
macro index E "!offlineimap -o -u blinkenlights\n" "Sync Mail"
#bind index,pager L group-reply
macro index gi "<change-folder>=inbox<enter>" "Go to inbox"
macro pager gi "<change-folder>=inbox<enter>" "Go to inbox"
#preferred file type order when viewing multipart/alternative emails
unalternative_order *
#alternative_order text/enriched text/plain text/html
alternative_order text/*
#auto view
set mailcap_path=~/.mail/mailcap
auto_view text/html application/pdf application/msword text/enriched text/rtf
# traditional Fwd: subject
set forward_format="Fwd: %s"
#show tildes at the end fo mail
set tilde=yes
#text width
set wrap=-3
## 当你按 "t" 或者 "D" 之类的标记操作时,是否自动把光标移动到下一封信件。
set resolve=yes
#address book related
set query_command = "lbdbq '%s'" #;~/bin/mutt_ldap_query.py '%s'"
macro generic,index,pager A "<shell-escape>abook<return>"
macro index,pager a "|abook --add-email<return>"
#urlview
macro pager \cu "|urlview \n"
macro index,pager \cb "<pipe-message> urlscan<Enter>" "call urlscan to extract URLs out of a message"
macro attach,compose \cb "<pipe-entry> urlscan<Enter>" "call urlscan to extract URLs out of a message"
###headers to show / ignore
## ignore everything not listed
ignore *
## show user agent / mailer
unignore User-Agent: X-Agent: X-Mailer: X-Operating-System: X-Newsreader: X-URL Organization
## show from,date,subject,to,cc,reply-to headers
unignore From: Date: Subject: To: Cc: BCC: Reply-to: Mail-Followup-To: X-PGP-Key-ID
## set the order of headers
hdr_order From: Reply-to: To: Cc: Subject: Date: X-PGP-Key-ID User-Agent: X-Mailer: X-Agent: X-Operating-System
#color scheme
source "$HOME/.mail/mutt_colors"
###mutt-sidebar
set sidebar_visible=yes
set sidebar_width=25
mailboxes ! =gmail/inbox =work/inbox =gmail/social =gmail/python =gmail/golang =gmail/haskell =gmail/scheme =gmail/linux.shlug =gmail/xdlinux =gmail/linux.xiyou =drafts
set mail_check_stats
set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
color sidebar_new red default
bind pager,index \CP sidebar-prev
bind pager,index \CN sidebar-next
bind pager,index \CL sidebar-open
# I don't need these. just for documentation purposes. See below.
# sidebar-scroll-up
# sidebar-scroll-down
# b toggles sidebar visibility
macro index b '<enter-command>toggle sidebar_visible<enter>'
macro pager b '<enter-command>toggle sidebar_visible<enter><redraw-screen>'
# Remap bounce-message function to "B"
bind index B bounce-message
#pgp
source ~/.mail/crypto
#notmuch
source ~/.mail/notmuchrc