-
Notifications
You must be signed in to change notification settings - Fork 2
/
.muttrc
119 lines (99 loc) · 4.69 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
#======================================================#
# Boring details
set realname = "hang.xiao"
set from = "hang.xiao.hh@gmail.com"
set use_from = yes
set envelope_from ="yes"
set reverse_name=yes
# alternates "hang\.xiao\.hh@gmail\.com|xiaohang@picb\.ac\.cn" #replace by folder-hook
# Use a signature
set signature="~/.signature"
# Use msmtp rather than sendmail. Check that
# the path is correct for your system:
set sendmail="/usr/bin/msmtp"
set read_inc=30 # set the increase value when read large mailbox
#======================================================#
# Folders
set folder="$HOME/.mail" # Local mailboxes stored here
set mbox="+inbox" # save mail dir
set record="+sent" # Where to store sent messages
set postponed="+postponed" # Where to store draft messages
#set mbox_type=maildir # mbox # Mailbox type
set spoolfile = "$HOME/.mail/mail1_picb" # if $MAIL is not set
#set spoolfile = "imaps://xiaohang@webmail.picb.ac.cn" # if $MAIL is not set
set move=no # stop asking to "move read messages to mbox"
mailboxes "+mail1_picb"
mailboxes "+mail2_gmail"
mailboxes "+mail_saved"
#mailboxes "+mail3_163"
mailboxes "+mail4_yahoo"
#mailboxes "+mail5_backup"
#mailboxes imaps://xiaohang@webmail.picb.ac.cn
#mailboxes imaps://hang.xiao.hh@gmail.com@imap.gmail.com
folder-hook mail1_picb set from = "xiaohang@picb.ac.cn"
folder-hook mail2_gmail set from = "hang.xiao.hh@gmail.com"
folder-hook mail3_163 set from = "my_645@163.com"
folder-hook mail4_yahoo set from = "xiaohang_87@yahoo.com.cn"
folder-hook mail5_backup set from = "xiaohang@picb.ac.cn"
save-hook ~A =mail_saved # set default save mail box
set confirmappend = no # disable confirm append infomation
#account-hook imaps://xiaohang@webmail.picb.ac.cn 'set imap_user=xiaohang@picb.ac.cn imap_pass="xiaohang20053456"'
#account-hook imaps://hang.xiao.hh@gmail.com@imap.gmail.com 'set imap_user=hang.xiao.hh@gmail.com imap_pass="new20053456'
#======================================================#
# Watch these mailboxes for new mail, useful only if
# Procmail or Maildrop is used to sort mail.
#mailboxes ! +slrn +fetchmail +mutt
set sort_browser=alpha # Sort mailboxes by alpha(bet)
#======================================================#
# What to show and order of headers
ignore *
unignore Date: From: User-Agent: X-Mailer X-Operating-System To: \
Cc: Reply-To: Subject: Mail-Followup-To:
hdr_order Date: From: User-Agent: X-Mailer X-Operating-System To: \
Cc: Reply-To: Subject: Mail-Followup-To:
#======================================================#
# which editor do you want to use?
# vim of course!
set editor="vi -c 'set tw=70 et' '+/^$' "
set edit_headers=yes # See the headers when editing
#======================================================#
# Aliases
set alias_file = ~/.mutt/mutt_aliases # In their own file
source ~/.mutt/mutt_aliases # Source them
set sort_alias=alias # Sort alphabetically
#======================================================#
# Colours: defaults are a little bleak so experiment!
#source ~/.mutt/colors.linux # In their own file
source ~/.mutt/colors.other # In their own file
#source ~/.mutt/mutt_colors # In their own file
#======================================================#
# Lists: An example using the mutt-users list:
lists mutt-users
subscribe mutt-users
set followup_to=yes # Sets 'Mail-Followup-To' header
set honor_followup_to=yes
fcc-hook mutt-user +mutt # See your own posts using fcc
#======================================================#
# Odds and ends
set markers # mark wrapped lines of text in the pager with a +
set smart_wrap # Don't wrap mid-word
set pager_context=5 # Retain 5 lines of previous page when scrolling.
set status_on_top # Status bar on top.
push <show-version> # Shows mutt version at startup
#======================================================#
#set sort = threads
set sort=reverse-date-sent # sort by date reverse
macro index,pager I '<shell-escape> fetch_mail.sh <enter>'
macro generic "<esc>1" ":set from='Hang Xiao <hang.xiao.hh@gmail.com>'"
macro generic "<esc>2" ":set from='Hang Xiao <xiaohang@picb.ac.cn>'"
#macro index,pager "I" "yk\n"
macro index,pager "i" "yj\n"
set charset="UTF-8" # terminal coding
set send_charset="UTF-8" # charset for sending mail
set locale="zh_CN.UTF-8"
charset-hook ^us-ascii$ gb2312
charset-hook !UTF-8 gb2312
set assumed_charset="gb2312"
set rfc2047_parameters=yes # solve problem of attachment mess coding
auto_view text/html
set include # 回信时自动包含原文