aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/mmdsr
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/mmdsr')
-rw-r--r--contrib/mmdsr11
1 files changed, 9 insertions, 2 deletions
diff --git a/contrib/mmdsr b/contrib/mmdsr
index eb7031b3..a8f11b43 100644
--- a/contrib/mmdsr
+++ b/contrib/mmdsr
@@ -154,6 +154,7 @@
# 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 --
@@ -161,6 +162,12 @@
# Made listing of a queue directory conditional on existence.
# Sumarized unparseable messages and preserved queue entries
# in the Other Errors section.
+#
+# 0.0.19 Update by Mark Sapiro <mark@msapiro.net>
+# Updated on: Sun Nov 30 10:26:15 PST 2008
+# Changed processing of fromusenet posts. Previously, mmdsr
+# reported as gated only the first and last of a gated range.
+# Now mmdsr reports every post from the 'posted to' entries.
###############################################################################
# Set up locations of standard commands, directories, etc....
@@ -350,14 +357,14 @@ do
elif [ "${LOG}" = "fromusenet" ] ; then
- GRPS=`$EGREP -vi '(watermark:|nothing new| posted to |: \[[0-9\.]*\])' $TMPLOG | $GREP -i ' gating ' | $AWK '{ print $7 }' | $SORT -u | $FMT -w 75`
+ GRPS=`$EGREP -vi '(watermark:|nothing new| gating |: \[[0-9\.]*\])' $TMPLOG | $GREP -i ' posted to ' | $AWK '{ print $9 }' | $SED -e 's/:$//' | $SORT -u | $FMT -w 75`
for GRP in $GRPS
do
echo "" >> $TMP
echo "$GRP Article #'s Gated:" >> $TMP
echo "------------------------------" >> $TMP
- $EGREP -vi '(watermark:|nothing new| posted to |: \[[0-9\.]*\])' $TMPLOG | $GREP -i " gating " | $GREP -i " $GRP " | $SED -e 's/^.*\[//' -e 's/\]$//' -e 's/\.\./ /' | $TR ' ' '\n' | $SORT -u | $FMT -w 75 >> $TMP
+ $EGREP -vi '(watermark:|nothing new| gating |: \[[0-9\.]*\])' $TMPLOG | $GREP -i " posted to " | $GREP -i " $GRP: " | $AWK '{print $10}' | $SORT -u | $FMT -w 75 >> $TMP
done
elif [ "${LOG}" = "smtp" ] ; then