-
Notifications
You must be signed in to change notification settings - Fork 0
/
muttrc
146 lines (115 loc) · 5.03 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
set realname = "YOUR NAME"
set from = "<[email protected]>"
#set confirmappend = no
#set confirmcreate = no
set mbox_type = Maildir
set folder = ~/.mutt/mail
#set folder = ~/Mail
set record = "+Sent"
set postponed = "=Drafts"
set spoolfile = "~/.mutt/mail/[email protected]"
set sort = "reverse-threads"
#mailboxes `echo -n "+ "; find ~/.mutt/mail -maxdepth 1 -type d -printf "+'%f' "`
set to_chars = " +TCFL"
set attribution = "* %n <%a> [%{!%Y-%m-%d %H:%M:%S}]:\n"
set include
set indent_str = "> "
set header = no
set quit = ask-yes
set move = no
set ascii_chars = no
# set use_threads = yes sort = reverse-last-date sort_aux = date
set pager_stop
set resolve = yes
set pipe_decode = yes
set query_command = "abook --mutt-query '%s'"
macro index,pager a "<pipe-message>abook --add-email-quiet<return>" "Add sender as contacts"
bind editor <Tab> complete-query
macro index A \
"<tag-pattern>~N<enter><tag-prefix><clear-flag>N<untag-pattern>.<enter>" \
"mark all new as read"
set charset = "utf-8"
set send_charset = "us-ascii:iso-8859-1:utf-8:gb2312"
set wait_key = yes
set noconfirmappend
set edit_headers = yes
set autoedit = yes
set fast_reply
set pager_index_lines = 6
set crypt_autosign = yes
#set crypt_autoencrypt = yes
set crypt_replysign = yes
#set crypt_replyencrypt = yes
#set crypt_replysignencrypted = yes
set crypt_verify_sig=yes
set pgp_default_key = 0x12345678
set pgp_sign_as = 0x12345678
set pgp_use_gpg_agent=yes
set pgp_show_unusable = no
# set pgp_sign_as = [email protected]
subscribe [email protected]
set rfc2047_parameters = yes
set assumed_charset = "utf-8:gb2312:big5"
auto_view text/html
alternative_order text/plain text/enriched text/html
set envelope_from = yes
ignore *
unignore from to subject date
set sidebar_visible = yes
macro index b '<enter-command>toggle sidebar_visible<enter>'
bind index,pager \CP sidebar-prev
bind index,pager \CN sidebar-next
bind index,pager \CO sidebar-open
#bind index G imap-fetch-mail
macro index,pager G "!getmails -n\n" "call getmail from all accounts"
## rebind g to get mail for current seleted account, and use <Esc>g to reply to group
# to use this macro, you need the modified version of getmail6
bind index g noop
macro index g "!getmails -n -A $my_account\n" "call getmail to get email from current account"
bind index,pager <Esc>g group-reply
# macro generic \em ":source $HOME/.muttrc\r" "Loading .muttrc"
# macro generic \ej "!vim $HOME/.muttrc\r" "Edit .muttrc"
#macro index,pager \es "T.*<enter>;s" "Save mails"
#macro index,pager \en "T~N<enter>;WN;W*T~O<enter>;WO;W*" "Clear N and O marks"
color quoted green brightblack
color quoted1 magenta black
color quoted2 yellow brightblack
color quoted3 red black
color signature cyan black
color index lightcyan black "~P" # send by self (ref:alternates)
color index lightred black "~D" # deleted
color index lightgreen black "~U" # unread
color index yellow black "~T" # short
color index lightyellow black "~F" # long-term
#color index magenta black "~h ^Disposition-Notification-To: !~Q" # unreplied
color normal lightwhite default
# color attachment brightgreen blue
# color bold brightwhite default
# color underline default blue
# color error brightwhite default
# color indicator white blue
# color message brightblue default
# color status white blue
color sidebar_indicator default red # Red background
#color sidebar_highlight brightwhite grey # Grey background
#color sidebar_spool_file lightyellow default # Yellow
# color sidebar_unread lightcyan default # Light blue
color sidebar_new brightgreen default # Green
#color sidebar_ordinary default default # Default colors
color sidebar_flagged lightred default # Red
color sidebar_divider color8 default # Dark grey
#send-hook "~f [email protected]"
#send-hook "~f [email protected]"
#send-hook "~f [email protected]"
# folder-hook . 'unmy_hdr *; set record = "" postponed = "" sendmail = ""'
folder-hook [email protected] 'my_hdr From: [email protected]; \
macro index g "!getmails -n -A $my_account\n" "call getmail to get email from current account"'
set record="[email protected]/Sent" postponed="[email protected]/Draft" from="[email protected]" my_account="[email protected]" sendmail="/usr/bin/msmtp -a [email protected]"'
folder-hook [email protected] 'my_hdr From: [email protected]; \
set record="[email protected]/Sent" postponed="[email protected]/Draft" from="[email protected]" my_account="[email protected]" sendmail="/usr/bin/msmtp -a [email protected]"
macro index g "!getmails -n -A $my_account\n" "call getmail to get email from current account"'
folder-hook [email protected] 'my_hdr From: [email protected]; \
set record="[email protected]/Sent" postponed="[email protected]/Draft" from="[email protected]" my_account="[email protected]" sendmail="/usr/bin/msmtp -a [email protected]"
macro index g "!getmails -n -A $my_account\n" "call getmail to get email from current account"'