summaryrefslogtreecommitdiff
path: root/digest-mailer.in
diff options
context:
space:
mode:
Diffstat (limited to 'digest-mailer.in')
-rw-r--r--digest-mailer.in15
1 files changed, 13 insertions, 2 deletions
diff --git a/digest-mailer.in b/digest-mailer.in
index 62d7dca..43197d6 100644
--- a/digest-mailer.in
+++ b/digest-mailer.in
@@ -178,9 +178,20 @@ fi
counter=1
printf '%s\n' "${to_send}" | \
while read -r file; do
- printf 'vvvvv %s. vvvvv\n' "${counter}"
+ date=$(
+ printf '%s\n' "${file##*/}" | \
+ cut -d. -f3
+ )
+ date=$(
+ date -d"@${date}"
+ )
+ printf 'vvvvv %s. (%s) vvvvv\n' \
+ "${counter}" \
+ "${date}"
cat "${file}"
- printf '\n^^^^^ %s. ^^^^^\n' "${counter}"
+ printf '\n^^^^^ %s. (%s) ^^^^^\n' \
+ "${counter}" \
+ "${date}"
counter=$((counter+1))
rm "${file}"
done