aboutsummaryrefslogtreecommitdiffhomepage
path: root/mutt/muttrc
diff options
context:
space:
mode:
authorHsieh Chin Fan <typebrook@gmail.com>2022-06-30 11:50:50 +0800
committerHsieh Chin Fan <typebrook@gmail.com>2022-06-30 18:07:47 +0800
commit0af7dc7c27de55d318617e65a4dd4c35e8cf59a5 (patch)
tree3a69fc986dfff9bda5bbb77f0f15da8c4f5a62ee /mutt/muttrc
parentedbbe5d7f29bd44b0defab3cf44b6211562134dd (diff)
Update muttrc
Diffstat (limited to 'mutt/muttrc')
-rw-r--r--mutt/muttrc170
1 files changed, 2 insertions, 168 deletions
diff --git a/mutt/muttrc b/mutt/muttrc
index e0d41a3..131e782 100644
--- a/mutt/muttrc
+++ b/mutt/muttrc
@@ -1,168 +1,2 @@
1# IMAP/SMTP settings 1source ./default
2set folder = "imaps://pham@mail.topo.tw:993/" 2source ./topo.tw.login
3set imap_pass = `pass pham@topo.tw`
4set header_cache = "~/.cache/mutt"
5set message_cachedir = "~/.cache/mutt"
6set smtp_url = "smtp://pham@mail.topo.tw:587"
7set smtp_pass = "$imap_pass"
8
9# Identify meself
10set from = "pham@topo.tw"
11set realname = "謝晉凡 Hsieh Chin Fan"
12set signature="$SETTING_DIR/mutt/.signature"
13set pgp_use_gpg_agent=yes
14set crypt_use_gpgme=yes
15set pgp_timeout=300
16set pgp_sign_as=6DD8C14A # replace 6DD8C14A with your gpg key id
17set edit_headers=yes
18
19# Basic Mailbox
20set spoolfile = "+INBOX"
21set mbox= "+mbox"
22set move = yes
23set record = "+Sent"
24set trash = "+Trash"
25set postponed = "+Drafts"
26
27subscribe talk-tw@openstreetmap.org
28
29# Interface
30set editor = "vim"
31set charset = "utf-8"
32set send_charset = "us-ascii:utf-8"
33set header = no
34set pager_stop
35set sleep_time = 0 # When changing folder
36set timeout = 10
37set quit = ask-no
38set sort = reverse-threads
39set pager_index_lines = 5
40set markers = no # Remove '+' for long links with limited terminal width
41set index_format = "%4C %8Y %Z %(%b %d) %-15.15L (%?l?%4l&%4c?) %s"
42
43# Vim-style key binding, \c means Ctrl
44# 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
45bind index <Return> sync-mailbox
46bind index q browse-mailboxes
47bind index y edit-label
48bind index x tag-entry
49bind index t edit-label
50bind index,browser l select-entry
51bind index \\ limit
52bind index \cj next-entry
53bind index \ck previous-entry
54bind index,browser G last-entry
55bind index,browser g noop
56bind index,browser gg first-entry
57bind index \cf next-page
58bind index \cb previous-page
59bind index \cd half-down
60bind index \cu half-up
61bind index } bottom-page
62bind pager G bottom
63bind pager g noop
64bind pager gg top
65bind pager j next-line
66bind pager k previous-line
67bind pager \cf next-page
68bind pager \cb previous-page
69bind pager \cd half-down
70bind pager \cu half-up
71bind pager \cj next-entry
72bind pager \ck previous-entry
73bind attach x view-mailcap
74macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's configuration file"
75macro index <Return> ":exec sync-mailbox\n" "Sync Mailbox"
76macro index *a "Tall\n" "Select All"
77macro index *n "\ctall\n" "Deselect All"
78macro index h "\\all\n" "All messages"
79macro index d '<tag-prefix><delete-message>' 'Delete'
80
81# Sidebar
82mailboxes =INBOX =mbox "+------ Watch ------" =pay =osm =keep "+---- Processed ----" =Sent =Trash =Drafts
83set mail_check = 120
84set mail_check_stats
85set imap_check_subscribed
86set sidebar_visible = yes
87set sidebar_format = '%B%?F? [%F]?%* %?N?%N/?%S'
88set sidebar_short_path = yes
89set sidebar_width = 20
90bind index,pager B sidebar-toggle-visible
91bind index,pager \Cp sidebar-prev
92bind index,pager \Cn sidebar-next
93bind index,pager \Co sidebar-open
94bind index,pager <F5> sidebar-prev-new
95bind index,pager <F6> sidebar-next-new
96color indicator cyan black
97color sidebar_highlight white color8
98color sidebar_divider color8 black
99color sidebar_flagged red black
100color sidebar_new green black
101
102# basic colors
103color normal white black
104color error red black
105color tilde white black
106color message cyan black
107color markers red black
108color attachment brightred black
109color search brightmagenta black
110color status brightwhite black
111color indicator white blue
112color tree magenta black # arrows in threads
113
114# For list
115# Highlight mails by their status. For a specific pattern(e.g. ~N), pleas read mutt manual 4.2
116color index red black "~A" # all messages
117color index brightred black "~E" # expired messages
118color index brightcyan black "~N" # new messages
119color index brightcyan black "~O" # old messages
120color index brightmagenta black "~Q" # messages that have been replied to
121color index white black "~R" # read messages
122color index brightblue black "~U" # unread messages
123color index brightblue black "~U~$" # unread, unreferenced messages
124color index brightblue black "~v" # messages part of a collapsed thread
125color index brightblue black "~P" # messages from me
126color index cyan black "~p!~F" # messages to me
127color index brightgreen black "~N~p!~F" # new messages to me
128color index brightgreen black "~U~p!~F" # unread messages to me
129color index brightgreen black "~R~p!~F" # messages to me
130color index red black "~F" # flagged messages
131color index red black "~F~p" # flagged messages to me
132color index red black "~N~F" # new flagged messages
133color index red black "~N~F~p" # new flagged messages to me
134color index red black "~U~F~p" # new flagged messages to me
135color index brightyellow black "~T" # tagged messages
136color index black brightmagenta "~D" # deleted messages
137color index white black "~v~(!~N!~O)" # collapsed thread with no unread
138color index magenta black "~v~(~N|~O)" # collapsed thread with some unread
139color index magenta black "~N~v~(~N)" # collapsed thread with unread parent
140color index red white "~v~(~F)!~N" # collapsed thread with flagged, no unread
141color index yellow white "~v~(~F~N)" # collapsed thread with some unread & flagged
142color index green white "~N~v~(~F~N)" # collapsed thread with unread parent & flagged
143color index green white "~N~v~(~F)" # collapsed thread with unread parent, no unread inside, but some flagged
144color index yellow red "~v~(~D)" # thread with deleted (doesn't differentiate between all or partial)
145
146# color header
147color header green black "^(From)"
148color header brightyellow black "^(Subject)"
149
150# Set quote's starting symbol
151set quote_regexp = "^([ ]t]*[|>:}#])+"
152set quote_regexp = "^([ \t ]*[>])+"
153
154# Highlight quotes by indent
155color quoted blue black
156color quoted1 magenta black
157color quoted2 cyan black
158color quoted3 yellow black
159color quoted4 red black
160
161# urls
162color body brightblue black "(^|<| )mailto:[^ ]+@[^ ]( |>|$)"
163color body brightblue black "(^|<| )(http|https|ftp|file|telnet|news|finger)://[^ ]+( |>|$)"
164
165# *bold*, _underline_, and /italic/
166color body brightcyan black "(^| )\\*[^ ]+\\*( |$)"
167color body brightcyan black "(^| )_[^ ]+_( |$)"
168color body brightcyan black "(^| )/[^ ]+/( |$)"