aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/mail
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mail')
-rwxr-xr-xbin/mail/deliver.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh
index dfabedf..736d160 100755
--- a/bin/mail/deliver.sh
+++ b/bin/mail/deliver.sh
@@ -53,7 +53,7 @@ print_mail() {
53# save each field of header into vars 53# save each field of header into vars
54# TODO Use GNU MailUtils to save header 54# TODO Use GNU MailUtils to save header
55while read line; do 55while read line; do
56 [[ "${line}" =~ ^" " ]] && ${field}+=" ${line##*( )}" && continue 56 [[ "${line}" =~ ^" "|^" " ]] && ${field}+=" ${line##*( )}" && continue
57 57
58 IFS=': ' read field value <<<"${line}" 58 IFS=': ' read field value <<<"${line}"
59 field="${field^^}" 59 field="${field^^}"
@@ -95,17 +95,17 @@ elif [[ "${TO}" =~ talk-ja@openstreetmap.org ]]; then
95 mailbox=LIST/talk-ja 95 mailbox=LIST/talk-ja
96elif [[ "${LIST_ID}" =~ ^~rjarry/aerc-discuss ]]; then 96elif [[ "${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 [[ -n "${LIST_ID}" || "${SUBJECT}" =~ 電子報|newsletter|快訊 ]]; then 100elif [[ "${SUBJECT}" =~ 電子報|快訊|newsletter ]]; then
101 mailbox=news 101 mailbox=news
102elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存取 ]]; then 102elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存取 ]]; then
103 mailbox=login 103 mailbox=login
104elif [[ "${TO}" = cloudflare@topo.tw ]]; then 104elif [[ "${TO}" = cloudflare@topo.tw ]]; then
105 mailbox=SRV/cloudflare 105 mailbox=SRV/cloudflare
106elif [[ "${SUBJECT}" =~ 未讀|快訊|更新|核對表|unread|summary ]]; then 106elif [[ "${SUBJECT}" =~ 未讀|快訊|更新|核對表|unread|summary|introduc ]]; then
107 mailbox=update 107 mailbox=update
108elif [[ "${SUBJECT}${FROM}" =~ eDM|願望清單 ]]; then 108elif [[ "${SUBJECT}${FROM}" =~ 願望清單|eDM ]]; then
109 mailbox=MISC/promote 109 mailbox=MISC/promote
110# This is for greenpeace 110# This is for greenpeace
111elif [[ ${TO} =~ tienling.chou@topo.tw ]]; then 111elif [[ ${TO} =~ tienling.chou@topo.tw ]]; then