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