diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2025-02-10 10:10:18 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2025-02-10 10:10:18 +0800 |
| commit | eb548586160e64add11509f0a8e6722c7c773c43 (patch) | |
| tree | 9261dc68fe86fe9ac253495f208c9993d95f736b | |
| parent | 26ae090958e9203cfc30038a839ac5d98f310aad (diff) | |
Update
| -rwxr-xr-x | bin/mail/deliver.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh index e7eade7..d101602 100755 --- a/bin/mail/deliver.sh +++ b/bin/mail/deliver.sh | |||
| @@ -64,7 +64,6 @@ set_stdout() { | |||
| 64 | print_mail() { | 64 | print_mail() { |
| 65 | if [ "$private" = true ]; then | 65 | if [ "$private" = true ]; then |
| 66 | <<-MAIL cat | 66 | <<-MAIL cat |
| 67 | From: me <pham@topo.tw> | ||
| 68 | Date: ${mail_date} | 67 | Date: ${mail_date} |
| 69 | Message-ID: ${Message_ID} | 68 | Message-ID: ${Message_ID} |
| 70 | Content-Type: text/plain; charset=UTF-8 | 69 | Content-Type: text/plain; charset=UTF-8 |
| @@ -126,6 +125,8 @@ elif [[ "${LIST_ID}" =~ ^~rjarry/aerc-discuss ]]; then | |||
| 126 | mailbox=LIST/aerc | 125 | mailbox=LIST/aerc |
| 127 | elif [[ "${LIST_ID}" =~ mutt-users.mutt.org ]]; then | 126 | elif [[ "${LIST_ID}" =~ mutt-users.mutt.org ]]; then |
| 128 | mailbox=LIST/mutt | 127 | mailbox=LIST/mutt |
| 128 | elif [[ "${SUBJECT}" =~ 啟用 ]]; then | ||
| 129 | mailbox=service | ||
| 129 | elif [[ | 130 | elif [[ |
| 130 | "${SUBJECT}" =~ 電子報|快訊|newsletter || | 131 | "${SUBJECT}" =~ 電子報|快訊|newsletter || |
| 131 | "${FROM}${TO}" =~ substack|service@kucw.io \ | 132 | "${FROM}${TO}" =~ substack|service@kucw.io \ |
| @@ -136,8 +137,8 @@ elif [[ "${SUBJECT}" =~ 密碼|安全性警示|登入|存取|驗證|login|verify | |||
| 136 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then | 137 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then |
| 137 | mailbox=SRV/cloudflare | 138 | mailbox=SRV/cloudflare |
| 138 | elif [[ | 139 | elif [[ |
| 139 | "${SUBJECT}" =~ 未讀|更新|核對|嘟文|unread|summary|introduc || | 140 | "${SUBJECT}" =~ 通知|及|讀|更新|核對|嘟文|unread|summary|mention|introduc || |
| 140 | "${FROM}" =~ no-reply@hackmd.io \ | 141 | "${FROM}" =~ notification[s]?@|no-reply@hackmd.io \ |
| 141 | ]]; then | 142 | ]]; then |
| 142 | mailbox=update | 143 | mailbox=update |
| 143 | elif [[ | 144 | elif [[ |