diff options
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 |