aboutsummaryrefslogtreecommitdiffhomepage
path: root/bin/mail
diff options
context:
space:
mode:
Diffstat (limited to 'bin/mail')
-rwxr-xr-xbin/mail/deliver.sh4
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
136elif [[ "${TO}" = cloudflare@topo.tw ]]; then 136elif [[ "${TO}" = cloudflare@topo.tw ]]; then
137 mailbox=SRV/cloudflare 137 mailbox=SRV/cloudflare
138elif [[ 138elif [[
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
156declare -i width_mailbox=$(wc -c <<<"${mailbox:-INBOX}") 156declare -i width_mailbox=$(wc -c <<<"${mailbox:-INBOX}")
157spaces="$(printf %$(( 16 - ${width_mailbox} ))s)" 157spaces="$(printf %$(( 16 - ${width_mailbox} ))s)"
158echo -e $(date '+%m-%d %H:%M' -d @${epoch}) "=> ${mailbox:-INBOX}" "$spaces" "${heading:-${SUBJECT}}" >&2 158echo -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