From 9cdda8e853436df6f0c9fc11e38920071e736e49 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Wed, 22 Jan 2025 09:40:49 +0800 Subject: Update --- bin/mail/deliver.sh | 17 +++++++++++------ 1 file 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 mailbox=LIST/aerc elif [[ "${LIST_ID}" =~ mutt-users.mutt.org ]]; then mailbox=LIST/mutt -elif [[ "${SUBJECT}" =~ 電子報|快訊|newsletter ]]; then +elif [[ + "${SUBJECT}" =~ 電子報|快訊|newsletter || + "${TO}" =~ substack + "${FROM}" =~ service@kucw.io + ]]; then mailbox=news elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存取 ]]; then mailbox=login elif [[ "${TO}" = cloudflare@topo.tw ]]; then mailbox=SRV/cloudflare -elif [[ "${SUBJECT}" =~ 未讀|快訊|更新|核對表|unread|summary|introduc ]]; then +elif [[ "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc ]]; then mailbox=update -elif [[ "${SUBJECT}${FROM}" =~ 願望清單|eDM ]]; then +elif [[ + "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|eDM || + -n "${LIST_ID}" || + ${TO} =~ tienling.chou@topo.tw \ + ]]; then mailbox=MISC/promote -# This is for greenpeace -elif [[ ${TO} =~ tienling.chou@topo.tw ]]; then - mailbox=update fi # deliver mail to mailbox -- cgit v1.2.3-70-g09d2