aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Sapiro <mark@msapiro.net>2015-10-01 17:43:24 -0700
committerMark Sapiro <mark@msapiro.net>2015-10-01 17:43:24 -0700
commit57ff21b08b734c2450b7f3929852620eda65a7c6 (patch)
tree838c43feb6e0031dad4615fac87ae08d2ca312b7
parent5eb6c4f9a334678164747cf0d668e656b2162b17 (diff)
downloadmailman2-57ff21b08b734c2450b7f3929852620eda65a7c6.tar.gz
mailman2-57ff21b08b734c2450b7f3929852620eda65a7c6.tar.xz
mailman2-57ff21b08b734c2450b7f3929852620eda65a7c6.zip
mmdsr now reports held and banned subs in separate categories.
Banned addresses have s/\+\d+@/+<digits>@/ because of a flood of such lengthening the report.
-rw-r--r--contrib/mmdsr19
1 files changed, 18 insertions, 1 deletions
diff --git a/contrib/mmdsr b/contrib/mmdsr
index a103a08d..94d55b4e 100644
--- a/contrib/mmdsr
+++ b/contrib/mmdsr
@@ -186,6 +186,13 @@
# Updated on: Sat Jul 25 07:52:55 PDT 2015
# Updated "Login failure with private rosters" report to
# account for newly added IP in log message.
+#
+# 0.0.24 Update by Mark Sapiro <mark@msapiro.net>
+# Updated on: Thu Oct 1 15:15:39 PDT 2015
+# Report vette log held and banned subscriptions as their
+# own categories instead of in other errors.
+# Replaced s/\+\d+@/+<digits>@/ in vette log
+# banned subscription messages due to flood of such.
###############################################################################
# Set up locations of standard commands, directories, etc....
@@ -520,9 +527,19 @@ do
$GREP -i 'Post to moderated list' $TMPLOG | $AWK '{ print $6 }' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
echo "" >> $TMP
+ echo "Held Subscriptions" >> $TMP
+ echo "------------------------------" >> $TMP
+ $GREP -i 'held subscription request' $TMPLOG | $AWK '{ print $6 " " $11 }' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
+
+ echo "" >> $TMP
+ echo "Banned Subscriptions" >> $TMP
+ echo "------------------------------" >> $TMP
+ $GREP -i 'banned subscription' $TMPLOG | $AWK '{ print $6 " " $9 }' | $SED -e 's/\+[0-9][0-9]*@/+<digits>@/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
+
+ echo "" >> $TMP
echo "Other Errors:" >> $TMP
echo "------------------------------" >> $TMP
- $EGREP -vi '(Post by non-member|suspicious header|message approved|Discarded posting|bulk message discarded|junk message discarded|Message has implicit destination|Posting to a moderated newsgroup|Post to moderated list|Message discarded, msgid)' $TMPLOG | $SED -e 's/^.* ([0-9]*) //' -e 's/, message-id=<[^> ]*>:/:/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
+ $EGREP -vi '(Post by non-member|suspicious header|message approved|Discarded posting|bulk message discarded|junk message discarded|Message has implicit destination|Posting to a moderated newsgroup|Post to moderated list|Message discarded, msgid|held subscription request|banned subscription)' $TMPLOG | $SED -e 's/^.* ([0-9]*) //' -e 's/, message-id=<[^> ]*>:/:/' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
elif [ "${LOG}" = "smtp-failure" ] ; then