diff options
Diffstat (limited to 'bin/mail')
-rwxr-xr-x | bin/mail/deliver.sh | 10 |
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 |
55 | while read line; do | 55 | while 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 |
96 | elif [[ "${LIST_ID}" =~ ^~rjarry/aerc-discuss ]]; then | 96 | 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 [[ -n "${LIST_ID}" || "${SUBJECT}" =~ 電子報|newsletter|快訊 ]]; then | 100 | elif [[ "${SUBJECT}" =~ 電子報|快訊|newsletter ]]; then |
101 | mailbox=news | 101 | mailbox=news |
102 | elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存取 ]]; then | 102 | elif [[ "${SUBJECT}" =~ login|verify|sign-in|密碼|安全性警示|登入|存取 ]]; then |
103 | mailbox=login | 103 | mailbox=login |
104 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then | 104 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then |
105 | mailbox=SRV/cloudflare | 105 | mailbox=SRV/cloudflare |
106 | elif [[ "${SUBJECT}" =~ 未讀|快訊|更新|核對表|unread|summary ]]; then | 106 | elif [[ "${SUBJECT}" =~ 未讀|快訊|更新|核對表|unread|summary|introduc ]]; then |
107 | mailbox=update | 107 | mailbox=update |
108 | elif [[ "${SUBJECT}${FROM}" =~ eDM|願望清單 ]]; then | 108 | elif [[ "${SUBJECT}${FROM}" =~ 願望清單|eDM ]]; then |
109 | mailbox=MISC/promote | 109 | mailbox=MISC/promote |
110 | # This is for greenpeace | 110 | # This is for greenpeace |
111 | elif [[ ${TO} =~ tienling.chou@topo.tw ]]; then | 111 | elif [[ ${TO} =~ tienling.chou@topo.tw ]]; then |