aboutsummaryrefslogtreecommitdiffhomepage
path: root/muttrc
diff options
context:
space:
mode:
Diffstat (limited to 'muttrc')
-rw-r--r--muttrc121
1 files changed, 121 insertions, 0 deletions
diff --git a/muttrc b/muttrc
new file mode 100644
index 0000000..39a59cf
--- /dev/null
+++ b/muttrc
@@ -0,0 +1,121 @@
1set folder = "imaps://pham@mail.topo.tw:993"
2set imap_pass = `pass pham@topo.tw`
3set message_cachedir = "~/.mail"
4
5set smtp_url = "smtp://pham@mail.topo.tw:25"
6set smtp_pass = "$imap_pass"
7
8set from = "pham@topo.tw"
9set realname = "謝晉凡 Hsieh Chin Fan"
10set signature="$SETTING_DIR/.signature"
11
12set spoolfile = "+INBOX"
13set mbox= "+mbox"
14set move = yes
15set record = "+Sent"
16set trash = "+Trash"
17set postponed = "+Drafts"
18
19#mailboxes =INBOX =mbox =Sent =Trash =Drafts #=talk-tw =pay =service
20
21subscribe talk-tw@openstreetmap.org
22
23set editor = "vim"
24set charset = "utf-8"
25set send_charset = "us-ascii:utf-8"
26set header = no
27set pager_stop
28set sleep_time=0 # When changing folder
29
30# Vim-style key binding, \c means Ctrl
31# ref: https://fancyseeker.github.io/2015/08/19/mutt/#vim%E9%A3%8E%E6%A0%BC%E9%94%AE%E4%BD%8D%E7%BB%91%E5%AE%9A
32bind pager G bottom
33bind pager j next-line
34bind pager k previous-line
35bind pager \cf next-page
36bind pager \cb previous-page
37bind pager \cd half-down
38bind pager \cu half-up
39bind pager \cj next-entry
40bind pager \ck previous-entry
41bind pager gg top
42bind pager G bottom
43bind index gg first-entry
44bind index G last-entry
45bind index R group-reply
46bind index \cf next-page
47bind index \cb previous-page
48bind pager \cd half-down
49bind pager \cu half-up
50bind index } bottom-page
51bind index x tag-entry
52
53# basic colors -------------------------------------------------------
54color normal white black
55color error red black
56color tilde white black
57color message cyan black
58color markers red black
59color attachment brightred black
60color search brightmagenta black
61color status brightwhite black
62color indicator white blue
63color tree magenta black # arrows in threads
64
65# 列表部分 -------------------------------------------------------
66# 高亮不同状态的邮件, 具体的pattern(例如~N)参见mutt manual的4.2节
67
68color index red black "~A" # all messages
69color index brightred black "~E" # expired messages
70color index brightcyan black "~N" # new messages
71color index brightcyan black "~O" # old messages
72color index brightmagenta black "~Q" # messages that have been replied to
73color index white black "~R" # read messages
74color index brightblue black "~U" # unread messages
75color index brightblue black "~U~$" # unread, unreferenced messages
76color index brightblue black "~v" # messages part of a collapsed thread
77color index brightblue black "~P" # messages from me
78color index cyan black "~p!~F" # messages to me
79color index brightgreen black "~N~p!~F" # new messages to me
80color index brightgreen black "~U~p!~F" # unread messages to me
81color index green black "~R~p!~F" # messages to me
82color index red black "~F" # flagged messages
83color index red black "~F~p" # flagged messages to me
84color index red black "~N~F" # new flagged messages
85color index red black "~N~F~p" # new flagged messages to me
86color index red black "~U~F~p" # new flagged messages to me
87color index white brightmagenta "~D" # deleted messages
88color index white black "~v~(!~N!~O)" # collapsed thread with no unread
89color index magenta black "~v~(~N|~O)" # collapsed thread with some unread
90color index magenta black "~N~v~(~N)" # collapsed thread with unread parent
91color index red white "~v~(~F)!~N" # collapsed thread with flagged, no unread
92color index yellow white "~v~(~F~N)" # collapsed thread with some unread & flagged
93color index green white "~N~v~(~F~N)" # collapsed thread with unread parent & flagged
94color index green white "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged
95color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial)
96
97# 邮件内容页面邮件头部分高亮 ------------------------------------------
98
99# color header
100color header green black "^(From)"
101color header brightyellow black "^(Subject)"
102
103# 引文起始符号设置
104set quote_regexp = "^([ ]t]*[|>:}#])+"
105set quote_regexp = "^([ \t ]*[>])+"
106
107# 嵌套引文不同层的颜色
108color quoted blue black
109color quoted1 magenta black
110color quoted2 cyan black
111color quoted3 yellow black
112color quoted4 red black
113
114# urls
115color body brightblue black "(^|<| )mailto:[^ ]+@[^ ]( |>|$)"
116color body brightblue black "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)"
117
118# *bold*, _underline_, and /italic/
119color body brightcyan black "(^| )\\*[^ ]+\\*( |$)"
120color body brightcyan black "(^| )_[^ ]+_( |$)"
121color body brightcyan black "(^| )/[^ ]+/( |$)"