aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/mail
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mail')
-rwxr-xr-xbin/mail/deliver.sh14
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
115elif [[ "${FROM}${RETURN_PATH}" =~ notifications@github.com|noreply@github.com ]]; then 115elif [[ "${FROM}${RETURN_PATH}" =~ notifications@github.com|noreply@github.com ]]; then
116 mailbox=DEV/github 116 mailbox=zd/github
117elif [[ "${FROM}" =~ jgbsmart.com ]]; then 117elif [[ "${FROM}" =~ jgbsmart.com ]]; then
118 mailbox=rent 118 mailbox=rent
119elif [[ "${SUBJECT}" =~ 帳單|轉帳|對帳|付款|發票|消費|繳費|收據|費用|簽帳|Invoice|Billing ]]; then 119elif [[ "${SUBJECT}" =~ 帳單|轉帳|對帳|付款|發票|消費|繳費|收據|費用|簽帳|Invoice|Billing ]]; then
120 mailbox=pay 120 mailbox=pay
121elif [[ "${TO}" =~ dmarc@topo.tw ]]; then 121elif [[ "${TO}" =~ dmarc@topo.tw ]]; then
122 mailbox=DEV/dmarc 122 mailbox=zd/dmarc
123elif [[ "${LIST_ID}" =~ ^'Open Street Map Taiwan' ]]; then 123elif [[ "${LIST_ID}" =~ ^'Open Street Map Taiwan' ]]; then
124 mailbox=FOSS/osm 124 mailbox=FOSS/osm
125elif [[ "${TO}" =~ talk-ja@openstreetmap.org ]]; then 125elif [[ "${TO}" =~ talk-ja@openstreetmap.org ]]; then
@@ -132,7 +132,7 @@ elif [[ "${SUBJECT}" =~ 啟用 ]]; then
132 mailbox=service 132 mailbox=service
133elif [[ 133elif [[
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
138elif [[ "${SUBJECT}" =~ 密碼|安全性警示|登入|存取|驗證|login|verif|sign-in ]]; then 138elif [[ "${SUBJECT}" =~ 密碼|安全性警示|登入|存取|驗證|login|verif|sign-in ]]; then
@@ -142,13 +142,13 @@ elif [[ "${TO}" = cloudflare@topo.tw ]]; then
142elif [[ 142elif [[
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
148elif [[ 148elif [[
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
154fi 154fi