diff options
Diffstat (limited to 'bin/mail')
-rwxr-xr-x | bin/mail/deliver.sh | 17 |
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 |
98 | elif [[ "${LIST_ID}" =~ mutt-users.mutt.org ]]; then | 98 | elif [[ "${LIST_ID}" =~ mutt-users.mutt.org ]]; then |
99 | mailbox=LIST/mutt | 99 | mailbox=LIST/mutt |
100 | elif [[ "${SUBJECT}" =~ 電子報|快訊|newsletter ]]; then | 100 | elif [[ |
101 | "${SUBJECT}" =~ 電子報|快訊|newsletter || | ||
102 | "${TO}" =~ substack | ||
103 | "${FROM}" =~ service@kucw.io | ||
104 | ]]; then | ||
101 | mailbox=news | 105 | mailbox=news |
102 | elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存取 ]]; then | 106 | elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存取 ]]; then |
103 | mailbox=login | 107 | mailbox=login |
104 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then | 108 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then |
105 | mailbox=SRV/cloudflare | 109 | mailbox=SRV/cloudflare |
106 | elif [[ "${SUBJECT}" =~ 未讀|快訊|更新|核對表|unread|summary|introduc ]]; then | 110 | elif [[ "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc ]]; then |
107 | mailbox=update | 111 | mailbox=update |
108 | elif [[ "${SUBJECT}${FROM}" =~ 願望清單|eDM ]]; then | 112 | elif [[ |
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 | ||
111 | elif [[ ${TO} =~ tienling.chou@topo.tw ]]; then | ||
112 | mailbox=update | ||
113 | fi | 118 | fi |
114 | 119 | ||
115 | # deliver mail to mailbox | 120 | # deliver mail to mailbox |