summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--digest-mailer.in8
1 files changed, 6 insertions, 2 deletions
diff --git a/digest-mailer.in b/digest-mailer.in
index b62b57c..764f5eb 100644
--- a/digest-mailer.in
+++ b/digest-mailer.in
@@ -169,15 +169,19 @@ fi
sed -n '
/^$/q
s/^Subject:.*$/Subject: mail-digest/
+ p
' "$(
- printf '%s' "${to_send}" | \
+ printf '%s\n' "${to_send}" | \
head -n1
)"
printf '\n'
+ counter=1
printf '%s\n' "${to_send}" | \
while read -r file; do
+ printf 'vvvvv %s. vvvvv\n' "${counter}"
cat "${file}"
- printf '\n'
+ printf '\n^^^^^ %s. ^^^^^\n' "${counter}"
+ counter=$((counter+1))
rm "${file}"
done
} | ${mail_cmd}