aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/mmdsr
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2008-06-06 10:49:41 -0700
committerMark Sapiro <mark@msapiro.net>2008-06-06 10:49:41 -0700
commit1f5bb73a37207e5491130b788db39330492f625f (patch)
tree67ddffa0179eedee999a71c111b9d88640ab5fbd /contrib/mmdsr
parentacca1a3aae7c167aed83059340e3ce3c8c09ad3c (diff)
downloadmailman2-1f5bb73a37207e5491130b788db39330492f625f.tar.gz
mailman2-1f5bb73a37207e5491130b788db39330492f625f.tar.xz
mailman2-1f5bb73a37207e5491130b788db39330492f625f.zip
Updated mmdsr for some 2.1.10 log and queue changes.
Diffstat (limited to 'contrib/mmdsr')
-rw-r--r--contrib/mmdsr15
1 files changed, 12 insertions, 3 deletions
diff --git a/contrib/mmdsr b/contrib/mmdsr
index a19257b4..05650844 100644
--- a/contrib/mmdsr
+++ b/contrib/mmdsr
@@ -2,7 +2,7 @@
###############################################################################
# mmdsr -- Mailman Daily Status Report (cron job, run at 23:59)
###############################################################################
-# Copyright (c) 2005, Brad Knowles
+# Copyright (c) 2005-2008 Brad Knowles
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
@@ -154,6 +154,13 @@
# Updated on: Thu Jan 3 18:25:06 PST 2008
# Enabled processing the prior generation of a rotated log.
# Added SORT_FIELD to the user modifiable parameters.
+# 0.0.18 Update by Mark Sapiro <mark@msapiro.net>
+# Updated on: Tue May 13 08:58:26 PDT 2008
+# Changes for Mailman 2.1.10 --
+# Added 'bad' to the list of queues.
+# Made listing of a queue directory conditional on existence.
+# Sumarized unparseable messages and preserved queue entries
+# in the Other Errors section.
###############################################################################
# Set up locations of standard commands, directories, etc....
@@ -227,7 +234,7 @@ SUM_LOGS="fromusenet post smtp"
###############################################################################
# Mailman queue subdirectories to check. No need to specify path, only name.
###############################################################################
-SUBDIRS="archive bounces commands in news out retry shunt virgin"
+SUBDIRS="archive bad bounces commands in news out retry shunt virgin"
###############################################################################
# Specify the field specifier used by your sort command to select the second
@@ -418,7 +425,7 @@ do
echo "" >> $TMP
echo "Other Errors:" >> $TMP
echo "------------------------------" >> $TMP
- $EGREP -vi '(Uncaught runner exception|No such list|Ignoring unparseable message|Traceback|shunting)' $TMPLOG | $SED 's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
+ $EGREP -vi '(Uncaught runner exception|No such list|Traceback|shunting)' $TMPLOG | $SED 's/^.* ([0-9]*) //' | $SED 's/unparseable message.*/unparseable message/' | $SED 's/preserving file.*/preserving file/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
elif [ "${LOG}" = "fromusenet" ] ; then
@@ -519,6 +526,7 @@ cd $QUEUEDIR
for DIR in $SUBDIRS
do
+ if [ -d $DIR ] ; then
$RM -f $TMPLOG
$TOUCH $TMPLOG
$LS -la $DIR >> $TMPLOG
@@ -540,6 +548,7 @@ do
$TAIL $TMPLOG >> $TMP
fi
echo "" >> $TMP
+ fi
done