diff options
| -rwxr-xr-x | bin/mail/deliver.sh | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh index 31a4017..f33cb1c 100755 --- a/bin/mail/deliver.sh +++ b/bin/mail/deliver.sh | |||
| @@ -130,8 +130,8 @@ elif [[ "${LIST_ID}" =~ mutt-users.mutt.org ]]; then | |||
| 130 | elif [[ "${SUBJECT}" =~ 啟用 ]]; then | 130 | elif [[ "${SUBJECT}" =~ 啟用 ]]; then |
| 131 | mailbox=service | 131 | mailbox=service |
| 132 | elif [[ | 132 | elif [[ |
| 133 | "${SUBJECT}" =~ 電子報|快訊|newsletter || | 133 | "${SUBJECT}" =~ 電子報|快訊|newsletter || |
| 134 | "${FROM}${TO}" =~ substack|service@kucw.io \ | 134 | "${FROM}${TO}" =~ substack|service@kucw.io \ |
| 135 | ]]; then | 135 | ]]; then |
| 136 | mailbox=news | 136 | mailbox=news |
| 137 | elif [[ "${SUBJECT}" =~ 密碼|安全性警示|登入|存取|驗證|login|verify|sign-in ]]; then | 137 | elif [[ "${SUBJECT}" =~ 密碼|安全性警示|登入|存取|驗證|login|verify|sign-in ]]; then |
| @@ -139,15 +139,14 @@ elif [[ "${SUBJECT}" =~ 密碼|安全性警示|登入|存取|驗證|login|verify | |||
| 139 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then | 139 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then |
| 140 | mailbox=SRV/cloudflare | 140 | mailbox=SRV/cloudflare |
| 141 | elif [[ | 141 | elif [[ |
| 142 | "${SUBJECT}" =~ 通知|提及|未讀|更新|核對|嘟文|unread|summary|mention|introduc || | 142 | "${SUBJECT}" =~ 通知|提及|未讀|更新|核對|嘟文|unread|summary|mention|introduc || |
| 143 | "${FROM}" =~ notification[s]?@|no-reply@hackmd.io \ | 143 | "${FROM}" =~ notification[s]?@|no-reply@hackmd.io \ |
| 144 | ]]; then | 144 | ]]; then |
| 145 | mailbox=update | 145 | mailbox=update |
| 146 | elif [[ | 146 | elif [[ |
| 147 | "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|活動|eDM || | 147 | "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|活動|eDM || |
| 148 | -n "${LIST_ID}${LIST_UNSUBSCRIBE}${FEEDBACK_ID}" || | 148 | ${FROM} =~ cora.computer || |
| 149 | ${FROM} =~ cora.computer || | 149 | -n "${LIST_ID}${LIST_UNSUBSCRIBE}${FEEDBACK_ID}${THREAD_INDEX}${X_MAILGUN_TAG}" \ |
| 150 | ${TO} =~ tienling.chou@topo.tw \ | ||
| 151 | ]]; then | 150 | ]]; then |
| 152 | mailbox=promote | 151 | mailbox=promote |
| 153 | fi | 152 | fi |