aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--alias1
-rwxr-xr-xbin/mail/deliver.sh4
2 files changed, 3 insertions, 2 deletions
diff --git a/alias b/alias
index 79e7602..69d6bb1 100644
--- a/alias
+++ b/alias
@@ -605,6 +605,7 @@ alias npm='pnpm'
605fix() { which $1 && grep -Po 'FIXME.*' $(which $1); } 605fix() { which $1 && grep -Po 'FIXME.*' $(which $1); }
606alias monitor.light='ddcutil --permit-unknown-feature setvcp 10' 606alias monitor.light='ddcutil --permit-unknown-feature setvcp 10'
607alias cdosm='cd /srv/osm' 607alias cdosm='cd /srv/osm'
608alias y='yazi'
608# }}} 609# }}}
609 610
610# vim:fdm=marker fdl=0 611# vim:fdm=marker fdl=0
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