summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--digest-mailer.in14
1 files changed, 14 insertions, 0 deletions
diff --git a/digest-mailer.in b/digest-mailer.in
index 43197d6..8d585f7 100644
--- a/digest-mailer.in
+++ b/digest-mailer.in
@@ -178,6 +178,20 @@ fi
counter=1
printf '%s\n' "${to_send}" | \
while read -r file; do
+ sed -n '
+ s/^Subject:\s*//
+ T
+ p
+ ' "${file}"
+ done | \
+ sort | \
+ uniq -c | \
+ sort -k1nr,1 -k2,2 | \
+ sed '
+ s/^\s*\([0-9]\+\)\s\+/\1: /
+ '
+ printf '%s\n' "${to_send}" | \
+ while read -r file; do
date=$(
printf '%s\n' "${file##*/}" | \
cut -d. -f3