diff options
| author | Hsieh Chin Fan <pham@topo.tw> | 2025-01-27 16:17:08 +0800 |
|---|---|---|
| committer | Hsieh Chin Fan <pham@topo.tw> | 2025-01-27 16:17:08 +0800 |
| commit | 4abe5ae5279243be8923d2975a247ec9b3ebcc55 (patch) | |
| tree | 7b2e2103b794bdb4f90238ba952b9f52a8cf83fa | |
| parent | 785cb8a9c94561847e506f7fcf0ccc322e354a11 (diff) | |
Update
| -rwxr-xr-x | bin/mail/deliver.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh index 703e284..4ed60ff 100755 --- a/bin/mail/deliver.sh +++ b/bin/mail/deliver.sh | |||
| @@ -88,6 +88,8 @@ elif [[ "${TO}" =~ '+'|'=' ]]; then | |||
| 88 | mailbox=${mailbox%@*} # remove suffix for mail address | 88 | mailbox=${mailbox%@*} # remove suffix for mail address |
| 89 | elif [[ "${FROM}${RETURN_PATH}" =~ notifications@github.com|noreply@github.com ]]; then | 89 | elif [[ "${FROM}${RETURN_PATH}" =~ notifications@github.com|noreply@github.com ]]; then |
| 90 | mailbox=DEV/github | 90 | mailbox=DEV/github |
| 91 | elif [[ "${FROM}" =~ jgbsmart.com ]]; then | ||
| 92 | mailbox=rent | ||
| 91 | elif [[ "${SUBJECT}" =~ 帳單|轉帳|對帳|付款|發票|消費|繳費|收據|費用|Invoice|Billing ]]; then | 93 | elif [[ "${SUBJECT}" =~ 帳單|轉帳|對帳|付款|發票|消費|繳費|收據|費用|Invoice|Billing ]]; then |
| 92 | mailbox=pay | 94 | mailbox=pay |
| 93 | elif [[ "${TO}" =~ dmarc@topo.tw ]]; then | 95 | elif [[ "${TO}" =~ dmarc@topo.tw ]]; then |
| @@ -109,7 +111,10 @@ elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存 | |||
| 109 | mailbox=login | 111 | mailbox=login |
| 110 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then | 112 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then |
| 111 | mailbox=SRV/cloudflare | 113 | mailbox=SRV/cloudflare |
| 112 | elif [[ "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc ]]; then | 114 | elif [[ |
| 115 | "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc || | ||
| 116 | "${FROM}" =~ no-reply@hackmd.io \ | ||
| 117 | ]]; then | ||
| 113 | mailbox=update | 118 | mailbox=update |
| 114 | elif [[ | 119 | elif [[ |
| 115 | "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|eDM || | 120 | "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|eDM || |