aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/mail
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mail')
-rwxr-xr-xbin/mail/deliver.sh7
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
89elif [[ "${FROM}${RETURN_PATH}" =~ notifications@github.com|noreply@github.com ]]; then 89elif [[ "${FROM}${RETURN_PATH}" =~ notifications@github.com|noreply@github.com ]]; then
90 mailbox=DEV/github 90 mailbox=DEV/github
91elif [[ "${FROM}" =~ jgbsmart.com ]]; then
92 mailbox=rent
91elif [[ "${SUBJECT}" =~ 帳單|轉帳|對帳|付款|發票|消費|繳費|收據|費用|Invoice|Billing ]]; then 93elif [[ "${SUBJECT}" =~ 帳單|轉帳|對帳|付款|發票|消費|繳費|收據|費用|Invoice|Billing ]]; then
92 mailbox=pay 94 mailbox=pay
93elif [[ "${TO}" =~ dmarc@topo.tw ]]; then 95elif [[ "${TO}" =~ dmarc@topo.tw ]]; then
@@ -109,7 +111,10 @@ elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存
109 mailbox=login 111 mailbox=login
110elif [[ "${TO}" = cloudflare@topo.tw ]]; then 112elif [[ "${TO}" = cloudflare@topo.tw ]]; then
111 mailbox=SRV/cloudflare 113 mailbox=SRV/cloudflare
112elif [[ "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc ]]; then 114elif [[
115 "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc ||
116 "${FROM}" =~ no-reply@hackmd.io \
117 ]]; then
113 mailbox=update 118 mailbox=update
114elif [[ 119elif [[
115 "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|eDM || 120 "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|eDM ||