From 85f7bfebb387d4aeea8538aabcca25426d22bf66 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 9 Apr 2018 13:16:44 +0200 Subject: digest-mailer.in: fix sed, make digest nicer --- digest-mailer.in | 8 ++++++-- 1 file 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} -- cgit v1.2.3-70-g09d2