From 4abe5ae5279243be8923d2975a247ec9b3ebcc55 Mon Sep 17 00:00:00 2001 From: Hsieh Chin Fan Date: Mon, 27 Jan 2025 16:17:08 +0800 Subject: Update --- bin/mail/deliver.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bin') 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 mailbox=${mailbox%@*} # remove suffix for mail address elif [[ "${FROM}${RETURN_PATH}" =~ notifications@github.com|noreply@github.com ]]; then mailbox=DEV/github +elif [[ "${FROM}" =~ jgbsmart.com ]]; then + mailbox=rent elif [[ "${SUBJECT}" =~ 帳單|轉帳|對帳|付款|發票|消費|繳費|收據|費用|Invoice|Billing ]]; then mailbox=pay elif [[ "${TO}" =~ dmarc@topo.tw ]]; then @@ -109,7 +111,10 @@ elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存 mailbox=login elif [[ "${TO}" = cloudflare@topo.tw ]]; then mailbox=SRV/cloudflare -elif [[ "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc ]]; then +elif [[ + "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc || + "${FROM}" =~ no-reply@hackmd.io \ + ]]; then mailbox=update elif [[ "${SUBJECT}${FROM}" =~ 優惠|快訊|願望清單|期待|eDM || -- cgit v1.2.3-70-g09d2