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