diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2025-04-09 12:12:59 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2025-04-09 12:12:59 +0800 |
| commit | 74f37cf5356e05866f104fb74b8de358a43eaaa5 (patch) | |
| tree | 3bcc79488c8ef09c33939f95833984172292841e | |
| parent | 0ffd0e58cd90b1334e91eaadd826bc889d30b405 (diff) | |
Update
| -rwxr-xr-x | bin/mail/deliver.sh | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh index 2ec00bf..c111692 100755 --- a/bin/mail/deliver.sh +++ b/bin/mail/deliver.sh | |||
| @@ -113,13 +113,13 @@ elif [[ "${TO}" =~ '+'|'=' ]]; then | |||
| 113 | mailbox=${TO#*[+=]} # remove chars before symbol of mailbox | 113 | mailbox=${TO#*[+=]} # remove chars before symbol of mailbox |
| 114 | mailbox=${mailbox%@*} # remove suffix for mail address | 114 | mailbox=${mailbox%@*} # remove suffix for mail address |
| 115 | elif [[ "${FROM}${RETURN_PATH}" =~ notifications@github.com|noreply@github.com ]]; then | 115 | elif [[ "${FROM}${RETURN_PATH}" =~ notifications@github.com|noreply@github.com ]]; then |
| 116 | mailbox=DEV/github | 116 | mailbox=zd/github |
| 117 | elif [[ "${FROM}" =~ jgbsmart.com ]]; then | 117 | elif [[ "${FROM}" =~ jgbsmart.com ]]; then |
| 118 | mailbox=rent | 118 | mailbox=rent |
| 119 | elif [[ "${SUBJECT}" =~ 帳單|轉帳|對帳|付款|發票|消費|繳費|收據|費用|簽帳|Invoice|Billing ]]; then | 119 | elif [[ "${SUBJECT}" =~ 帳單|轉帳|對帳|付款|發票|消費|繳費|收據|費用|簽帳|Invoice|Billing ]]; then |
| 120 | mailbox=pay | 120 | mailbox=pay |
| 121 | elif [[ "${TO}" =~ dmarc@topo.tw ]]; then | 121 | elif [[ "${TO}" =~ dmarc@topo.tw ]]; then |
| 122 | mailbox=DEV/dmarc | 122 | mailbox=zd/dmarc |
| 123 | elif [[ "${LIST_ID}" =~ ^'Open Street Map Taiwan' ]]; then | 123 | elif [[ "${LIST_ID}" =~ ^'Open Street Map Taiwan' ]]; then |
| 124 | mailbox=FOSS/osm | 124 | mailbox=FOSS/osm |
| 125 | elif [[ "${TO}" =~ talk-ja@openstreetmap.org ]]; then | 125 | elif [[ "${TO}" =~ talk-ja@openstreetmap.org ]]; then |
| @@ -132,7 +132,7 @@ elif [[ "${SUBJECT}" =~ 啟用 ]]; then | |||
| 132 | mailbox=service | 132 | mailbox=service |
| 133 | elif [[ | 133 | elif [[ |
| 134 | "${SUBJECT}" =~ 電子報|快訊|newsletter || | 134 | "${SUBJECT}" =~ 電子報|快訊|newsletter || |
| 135 | "${FROM}${TO}" =~ substack|service@kucw.io \ | 135 | "${FROM}${TO}" =~ substack|service@kucw.io |
| 136 | ]]; then | 136 | ]]; then |
| 137 | mailbox=news | 137 | mailbox=news |
| 138 | elif [[ "${SUBJECT}" =~ 密碼|安全性警示|登入|存取|驗證|login|verif|sign-in ]]; then | 138 | elif [[ "${SUBJECT}" =~ 密碼|安全性警示|登入|存取|驗證|login|verif|sign-in ]]; then |
| @@ -142,13 +142,13 @@ elif [[ "${TO}" = cloudflare@topo.tw ]]; then | |||
| 142 | elif [[ | 142 | elif [[ |
| 143 | "${SUBJECT}" =~ 通知|提及|未讀|更新|核對|嘟文|unread|summary|mention|introduc || | 143 | "${SUBJECT}" =~ 通知|提及|未讀|更新|核對|嘟文|unread|summary|mention|introduc || |
| 144 | "${FROM}" =~ iservice@narlabs.org.tw || | 144 | "${FROM}" =~ iservice@narlabs.org.tw || |
| 145 | "${FROM}" =~ notification[s]?@|no-reply@hackmd.io \ | 145 | "${FROM}" =~ notification[s]?@|no-reply@hackmd.io |
| 146 | ]]; then | 146 | ]]; then |
| 147 | mailbox=update | 147 | mailbox=update |
| 148 | elif [[ | 148 | elif [[ |
| 149 | "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|活動|eDM || | 149 | "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|活動|eDM|invitation || |
| 150 | ${FROM} =~ cora.computer || | 150 | ${FROM} =~ cora.computer|noreply@steampowered.com || |
| 151 | -n "${LIST_ID}${LIST_UNSUBSCRIBE}${FEEDBACK_ID}${THREAD_INDEX}${X_MAILGUN_TAG}${X_SFMC_STACK}" \ | 151 | -n "${LIST_ID}${LIST_UNSUBSCRIBE}${FEEDBACK_ID}${THREAD_INDEX}${X_MAILGUN_TAG}${X_SFMC_STACK}" |
| 152 | ]]; then | 152 | ]]; then |
| 153 | mailbox=promote | 153 | mailbox=promote |
| 154 | fi | 154 | fi |