aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/mail/deliver.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mail/deliver.sh')
-rwxr-xr-xbin/mail/deliver.sh17
1 files changed, 11 insertions, 6 deletions
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh
index 736d160..3974f78 100755
--- a/bin/mail/deliver.sh
+++ b/bin/mail/deliver.sh
@@ -97,19 +97,24 @@ elif [[ "${LIST_ID}" =~ ^~rjarry/aerc-discuss ]]; then
97 mailbox=LIST/aerc 97 mailbox=LIST/aerc
98elif [[ "${LIST_ID}" =~ mutt-users.mutt.org ]]; then 98elif [[ "${LIST_ID}" =~ mutt-users.mutt.org ]]; then
99 mailbox=LIST/mutt 99 mailbox=LIST/mutt
100elif [[ "${SUBJECT}" =~ 電子報|快訊|newsletter ]]; then 100elif [[
101 "${SUBJECT}" =~ 電子報|快訊|newsletter ||
102 "${TO}" =~ substack
103 "${FROM}" =~ service@kucw.io
104 ]]; then
101 mailbox=news 105 mailbox=news
102elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存取 ]]; then 106elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存取 ]]; then
103 mailbox=login 107 mailbox=login
104elif [[ "${TO}" = cloudflare@topo.tw ]]; then 108elif [[ "${TO}" = cloudflare@topo.tw ]]; then
105 mailbox=SRV/cloudflare 109 mailbox=SRV/cloudflare
106elif [[ "${SUBJECT}" =~ 未讀|快訊|更新|核對表|unread|summary|introduc ]]; then 110elif [[ "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc ]]; then
107 mailbox=update 111 mailbox=update
108elif [[ "${SUBJECT}${FROM}" =~ 願望清單|eDM ]]; then 112elif [[
113 "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|eDM ||
114 -n "${LIST_ID}" ||
115 ${TO} =~ tienling.chou@topo.tw \
116 ]]; then
109 mailbox=MISC/promote 117 mailbox=MISC/promote
110# This is for greenpeace
111elif [[ ${TO} =~ tienling.chou@topo.tw ]]; then
112 mailbox=update
113fi 118fi
114 119
115# deliver mail to mailbox 120# deliver mail to mailbox