aboutsummaryrefslogtreecommitdiffhomepage
path: root/mutt
diff options
context:
space:
mode:
Diffstat (limited to 'mutt')
-rw-r--r--mutt/default (renamed from mutt/gmail)27
-rw-r--r--mutt/gmail.login15
-rw-r--r--mutt/muttrc170
-rw-r--r--mutt/muttrc.gmail2
-rw-r--r--mutt/topo.tw.login25
5 files changed, 51 insertions, 188 deletions
diff --git a/mutt/gmail b/mutt/default
index a1d28fb..8c8e5d6 100644
--- a/mutt/gmail
+++ b/mutt/default
@@ -1,21 +1,7 @@
1# IMAP/SMTP settings 1# Default settings
2set imap_user = "typebrook@gmail.com"
3set imap_pass = `pass google/imap_for_typebrook`
4set header_cache = "~/.cache/mutt" 2set header_cache = "~/.cache/mutt"
5set message_cachedir = "~/.cache/mutt" 3set message_cachedir = "~/.cache/mutt"
6set smtp_url = "typebrook@gmail.com" 4set edit_headers=yes
7set smtp_pass = "$imap_pass"
8
9set folder = "imaps://imap.gmail.com/"
10set spoolfile = "+INBOX"
11set postponed = "+[Gmail]/Drafts"
12set record = "+[Gmail]/Sent Mail"
13set trash = "+[Gmail]/Trash"
14
15subscribe talk-tw@openstreetmap.org
16
17set ssl_starttls = yes
18set ssl_force_tls = yes
19 5
20# Interface 6# Interface
21set editor = "vim" 7set editor = "vim"
@@ -39,7 +25,7 @@ bind index y edit-label
39bind index x tag-entry 25bind index x tag-entry
40bind index t edit-label 26bind index t edit-label
41bind index,browser l select-entry 27bind index,browser l select-entry
42bind index \cl limit 28bind index \\ limit
43bind index \cj next-entry 29bind index \cj next-entry
44bind index \ck previous-entry 30bind index \ck previous-entry
45bind index,browser G last-entry 31bind index,browser G last-entry
@@ -66,9 +52,10 @@ macro generic,index,pager \cr ":source ~/.config/mutt/muttrc\n" "Reload mutt's c
66macro index <Return> ":exec sync-mailbox\n" "Sync Mailbox" 52macro index <Return> ":exec sync-mailbox\n" "Sync Mailbox"
67macro index *a "Tall\n" "Select All" 53macro index *a "Tall\n" "Select All"
68macro index *n "\ctall\n" "Deselect All" 54macro index *n "\ctall\n" "Deselect All"
69macro index h "\clall\n" "All messages" 55macro index h "\\all\n" "All messages"
70macro index d '<tag-prefix><delete-message>' 'Delete' 56macro index d '<tag-prefix><delete-message>' 'Delete'
71 57
58# Sidebar
72set mail_check = 120 59set mail_check = 120
73set mail_check_stats 60set mail_check_stats
74set imap_check_subscribed 61set imap_check_subscribed
@@ -115,13 +102,13 @@ color index brightblue black "~P" #
115color index cyan black "~p!~F" # messages to me 102color index cyan black "~p!~F" # messages to me
116color index brightgreen black "~N~p!~F" # new messages to me 103color index brightgreen black "~N~p!~F" # new messages to me
117color index brightgreen black "~U~p!~F" # unread messages to me 104color index brightgreen black "~U~p!~F" # unread messages to me
118color index green black "~R~p!~F" # messages to me 105color index brightgreen black "~R~p!~F" # messages to me
119color index red black "~F" # flagged messages 106color index red black "~F" # flagged messages
120color index red black "~F~p" # flagged messages to me 107color index red black "~F~p" # flagged messages to me
121color index red black "~N~F" # new flagged messages 108color index red black "~N~F" # new flagged messages
122color index red black "~N~F~p" # new flagged messages to me 109color index red black "~N~F~p" # new flagged messages to me
123color index red black "~U~F~p" # new flagged messages to me 110color index red black "~U~F~p" # new flagged messages to me
124color index brightgreen black "~T" # tagged messages 111color index brightyellow black "~T" # tagged messages
125color index black brightmagenta "~D" # deleted messages 112color index black brightmagenta "~D" # deleted messages
126color index white black "~v~(!~N!~O)" # collapsed thread with no unread 113color index white black "~v~(!~N!~O)" # collapsed thread with no unread
127color index magenta black "~v~(~N|~O)" # collapsed thread with some unread 114color index magenta black "~v~(~N|~O)" # collapsed thread with some unread
diff --git a/mutt/gmail.login b/mutt/gmail.login
new file mode 100644
index 0000000..ec3c6f7
--- /dev/null
+++ b/mutt/gmail.login
@@ -0,0 +1,15 @@
1# IMAP/SMTP settings
2set imap_user = "typebrook@gmail.com"
3set imap_pass = `pass google/imap_for_typebrook`
4set smtp_url = "typebrook@gmail.com"
5set smtp_pass = "$imap_pass"
6
7set ssl_starttls = yes
8set ssl_force_tls = yes
9
10# Set mailboxes
11set folder = "imaps://imap.gmail.com/"
12set spoolfile = "+INBOX"
13set postponed = "+[Gmail]/Drafts"
14set record = "+[Gmail]/Sent Mail"
15set trash = "+[Gmail]/Trash"
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 "(^| )/[^ ]+/( |$)"
diff --git a/mutt/muttrc.gmail b/mutt/muttrc.gmail
new file mode 100644
index 0000000..b7522b5
--- /dev/null
+++ b/mutt/muttrc.gmail
@@ -0,0 +1,2 @@
1source ./default
2source ./gmail.login
diff --git a/mutt/topo.tw.login b/mutt/topo.tw.login
new file mode 100644
index 0000000..5de7718
--- /dev/null
+++ b/mutt/topo.tw.login
@@ -0,0 +1,25 @@
1# IMAP/SMTP settings
2set folder = "imaps://pham@mail.topo.tw:993/"
3set imap_pass = `pass pham@topo.tw`
4set smtp_url = "smtp://pham@mail.topo.tw:587"
5set smtp_pass = "$imap_pass"
6
7# Identify meself
8set from = "pham@topo.tw"
9set realname = "謝晉凡 Hsieh Chin Fan"
10set signature="$SETTING_DIR/mutt/.signature"
11set pgp_use_gpg_agent=yes
12set crypt_use_gpgme=yes
13set pgp_timeout=300
14set pgp_sign_as=6DD8C14A # replace 6DD8C14A with your gpg key id
15
16# Basic Mailbox
17set spoolfile = "+INBOX"
18set mbox= "+mbox"
19set move = yes
20set record = "+Sent"
21set trash = "+Trash"
22set postponed = "+Drafts"
23
24# Sidebar
25mailboxes =INBOX =mbox "+------ Watch ------" =pay =osm =keep "+---- Processed ----" =Sent =Trash =Drafts