diff options
author | Hsieh Chin Fan <pham@topo.tw> | 2025-02-03 16:25:44 +0800 |
---|---|---|
committer | Hsieh Chin Fan <pham@topo.tw> | 2025-02-03 16:25:44 +0800 |
commit | 1b538235ea2c25b105687d8dddc1c384b5b1a258 (patch) | |
tree | 955dd2e0abaec8819d977390160ef295d2144c26 /bin | |
parent | 9a89d50df98d3e236a1d2405a1b942730eb4b82d (diff) |
Update
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/mail/deliver.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bin/mail/deliver.sh b/bin/mail/deliver.sh index ef3d461..aba07ef 100755 --- a/bin/mail/deliver.sh +++ b/bin/mail/deliver.sh | |||
@@ -153,6 +153,8 @@ fi | |||
153 | set_stdout && print_mail | 153 | set_stdout && print_mail |
154 | 154 | ||
155 | # log to stderr | 155 | # log to stderr |
156 | echo -e ${date} ${mailbox:-INBOX} '\t' "${heading:-${SUBJECT}}" >&2 | 156 | declare -i width_mailbox=$(wc -c <<<"${mailbox:-INBOX}") |
157 | spaces="$(printf %$(( 18 - ${width_mailbox} ))s)" | ||
158 | echo -e ${date} ${mailbox:-INBOX} "$spaces" "${heading:-${SUBJECT}}" >&2 | ||
157 | 159 | ||
158 | # vim:fdm=marker fdl=0 | 160 | # vim:fdm=marker fdl=0 |