diff options
Diffstat (limited to 'bin/mail/deliver.sh')
-rwxr-xr-x | bin/mail/deliver.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh index e1ba507..e7eade7 100755 --- a/bin/mail/deliver.sh +++ b/bin/mail/deliver.sh | |||
@@ -136,7 +136,7 @@ elif [[ "${SUBJECT}" =~ 密碼|安全性警示|登入|存取|驗證|login|verify | |||
136 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then | 136 | elif [[ "${TO}" = cloudflare@topo.tw ]]; then |
137 | mailbox=SRV/cloudflare | 137 | mailbox=SRV/cloudflare |
138 | elif [[ | 138 | elif [[ |
139 | "${SUBJECT}" =~ 未讀|更新|核對表|嘟文|unread|summary|introduc || | 139 | "${SUBJECT}" =~ 未讀|更新|核對|嘟文|unread|summary|introduc || |
140 | "${FROM}" =~ no-reply@hackmd.io \ | 140 | "${FROM}" =~ no-reply@hackmd.io \ |
141 | ]]; then | 141 | ]]; then |
142 | mailbox=update | 142 | mailbox=update |
@@ -155,6 +155,6 @@ set_stdout && print_mail | |||
155 | # log to stderr | 155 | # log to stderr |
156 | declare -i width_mailbox=$(wc -c <<<"${mailbox:-INBOX}") | 156 | declare -i width_mailbox=$(wc -c <<<"${mailbox:-INBOX}") |
157 | spaces="$(printf %$(( 16 - ${width_mailbox} ))s)" | 157 | spaces="$(printf %$(( 16 - ${width_mailbox} ))s)" |
158 | echo -e $(date '+%m-%d %H:%M' -d @${epoch}) "=> ${mailbox:-INBOX}" "$spaces" "${heading:-${SUBJECT}}" >&2 | 158 | echo -e $(date '+%m/%d %H:%M' -d @${epoch}) "=> ${mailbox:-INBOX}" "$spaces" "${heading:-${SUBJECT}}" >&2 |
159 | 159 | ||
160 | # vim:fdm=marker fdl=0 | 160 | # vim:fdm=marker fdl=0 |