Bugs item #1866480, was opened at 2008-01-08 10:28
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866480&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: jidanni (jidanni)
Assigned to: Nobody/Anonymous (nobody)
Summary: FAQ mentions non-existent READMEs
Initial Comment:
Only one of these exist:
$ fgrep README. FAQ
README.EXIM for details. Other MTAs have (of course)
also README.USERAGENT for more information.
See README.QMAIL
A. See the README.LINUX file.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866480&group_…
Bugs item #1866479, was opened at 2008-01-08 10:25
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866479&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: documentation
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: jidanni (jidanni)
Assigned to: Nobody/Anonymous (nobody)
Summary: INSTALL points to non-existent documentation
Initial Comment:
INSTALL says
All manuals within this source distribution are provided in the admin/www
directory:
HTML : admin/www/mailman-install/index.html
PostScript : admin/www/mailman-install.ps
PDF : admin/www/mailman-install.pdf
plain text : admin/www/mailman-install.txt
when all along there are no such paths "admin/www".
Sure, one eventually find a LaTeX file, with no instructions on how to
convert it to say HTML to read.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866479&group_…
Bugs item #1866476, was opened at 2008-01-08 10:22
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866476&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: jidanni (jidanni)
Assigned to: Nobody/Anonymous (nobody)
Summary: check_perms -f counts problems it just fixed
Initial Comment:
Even upon -f, check_perms says
"Problems found: 69
Re-run as norbelwitz (or root) with -f flag to fix"
even though it just fixed them, as a third run without -f proves.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866476&group_…
Bugs item #1866475, was opened at 2008-01-08 10:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866475&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: configuring/installing
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: jidanni (jidanni)
Assigned to: Nobody/Anonymous (nobody)
Summary: Do in Makefile: create install dir, check_perms
Initial Comment:
Why can't the step in
mailman-install/create-install-dir.html
be instead done via make install?
Just use --prefix's value.
check_perms -f should also be done by the Makefile.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866475&group_…
Bugs item #1866473, was opened at 2008-01-08 10:16
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866473&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Web/CGI
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: jidanni (jidanni)
Assigned to: Nobody/Anonymous (nobody)
Summary: make logos clickable
Initial Comment:
The three logos at the bottom of most mailman screens: users are used to being able to
click on things for more information, so make them clickable. Or maybe you
fear sending beginners on to tangents.
How often does one see a non-clickable logo these days?!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1866473&group_…
Patches item #1123383, was opened at 2005-02-15 12:14
Message generated for change (Comment added) made by msapiro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1123383&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: list administration
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Brad Knowles (shub)
Assigned to: Nobody/Anonymous (nobody)
Summary: Daily Status Report script...
Initial Comment:
Folks,
I quickly whacked together a Daily Status Report script for
Mailman (using Bourne shell, not Python ;), and thought that other
folks might be interested in seeing it.
The basic concept is a program that gets fired off at 23:59 every
night, and goes through a variety of log files looking for entries
specific to that date, and indicating problems or certain types of
activity that might be of interest to someone trying to administer
the server. It also does an "ls -la" of /usr/local/mailman/qfiles/*,
so that you can see what is in the queue at the time of the running
of the script.
My concept was that this daily report would get e-mailed to the
admin, or posted to a "reports" mailing list, where they could be
archived and kept for future reference.
The script does not (yet) do any statistics calculations, although it
should be relatively easy to hack together some basic stats using
awk, sort, etc....
Anyway, I thought I'd share it and let folks take a look at it, and if
anyone has any recommended improvements, we can incorporate
those and share them back out with everyone.
The code is written under a BSD-style license, so if you don't want
to contribute any changes back to me, that's okay. Of course, I
would prefer that you did, but I leave the choice up to you.
----------------------------------------------------------------------
>Comment By: Mark Sapiro (msapiro)
Date: 2008-01-03 18:38
Message:
Logged In: YES
user_id=1123998
Originator: NO
Re-did the 0.0.17 change to use the prior sort key field separator by
default but to make it a user settable parameter.
File Added: mmdsr
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2008-01-03 11:34
Message:
Logged In: YES
user_id=1123998
Originator: NO
I have added two files.
Version 0.0.16 corrects a couple of typo/minor issues. It is the version
that has been in the contrib directory of the distribution since Mailman
2.1.8.
Version 0.0.17 processes two generations of rotated logs (assuming they
are named xxx and xxx.1 and xxx.1 exists) so that data is not lost on the
day the logs rotate. It also changes a deprecated sort key option to one
that should work with all sort commands. This version will be in the
contrib directory of the Mailman 2.1.10 distribution.
File Added: mmdsr
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2008-01-03 09:33
Message:
Logged In: YES
user_id=1123998
Originator: NO
File Added: mmdsr
----------------------------------------------------------------------
Comment By: Dave Yost (daveyost)
Date: 2007-01-12 23:32
Message:
Logged In: YES
user_id=330919
Originator: NO
I suggest incorporating the readme into the shell script, so there is only
the one file.
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2006-01-25 17:55
Message:
Logged In: YES
user_id=18417
Folks,
Okay, I just uploaded version 0.0.15, which addresses the most recent
comments here from Mark and Tom, and makes a few additional tweaks as
well. See the version comments at the top of the script.
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2005-11-06 10:25
Message:
Logged In: YES
user_id=1123998
The vette log summary lists posts held for moderation
individually under "Other Errors:". The following patch
(watch out for wrapped lines) summarizes them by list instead.
--- mmdsr 2005-09-29 21:31:33.000000000 -0700
+++ mmdsrx 2005-11-06 08:20:58.835895418 -0800
@@ -415,10 +415,15 @@
echo "------------------------------" >> $TMP
$GREP -i 'Posting to a moderated newsgroup' $TMPLOG |
$AWK '{ print $6 }' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
+ echo "" >> $TMP
+ echo "Post to moderated list (by list):" >> $TMP
+ echo "------------------------------" >> $TMP
+ $GREP -i 'Post to moderated list' $TMPLOG |
$AWK '{ print $6 }' | $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|Message
discarded, msgid)' $TMPLOG | $SED 's/^.* ([0-9]*) //' |
$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)' $TMPLOG | $SED
's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
else
----------------------------------------------------------------------
Comment By: Tom G. Christensen (tgc99)
Date: 2005-10-19 01:23
Message:
Logged In: YES
user_id=1159458
ps output on solaris is full of whitespace but a further
echo get's rid of it.
The lines in the smtp log are sometimes broken up by a
newline (right before the msgid) which throws of the
summary. Piping it through sed first will rejoin the broken
lines.
Use $AWK instead of awk.
Patch inserted below:
--- mmdsr.orig 2005-10-19 09:42:30.000000000 +0200
+++ mmdsr 2005-10-19 09:44:23.000000000 +0200
@@ -203,7 +203,8 @@
# there is an easier cross-platform way to do it,
please let me know.
###############################################################################
-MYUID=`$PS -o user -p $$ | $TAIL -1`
+GRABUID=`$PS -o user -p $$ | $TAIL -1`
+MYUID=`echo $GRABUID`
RUNAS="mailman"
###############################################################################
@@ -254,7 +255,7 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >>
$TMPLOG
+ $SED -e :a -e '$!N;s/\n //;ta' -e 'P;D' $LOGDIR/$LOG |
$GREP -si "^$DAY [0-9][0-9:]* $YEAR" >> $TMPLOG
if [ -f "$LOGDIR/${LOG}" ] ; then
@@ -264,7 +265,7 @@
echo "Hourly Summary of Posts" >> $TMP
echo "-----------------------" >> $TMP
- $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.*$//' $TMPLOG | $UNIQ -c | $SORT -n +1 | awk '{ printf(
"%8d %02d:00-%02d
:59\n", $1, $2, $2 ) }' >> $TMP
+ $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.*$//' $TMPLOG | $UNIQ -c | $SORT -n +1 | $AWK '{
printf( "%8d %02d:00-%02
d:59\n", $1, $2, $2 ) }' >> $TMP
echo "" >> $TMP
echo "Post Count by List" >> $TMP
@@ -295,7 +296,7 @@
echo "" >> $TMP
echo "Hourly Summary of Messages Sent" >> $TMP
echo "-------------------------------" >> $TMP
- $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.* for / /' -e 's/ recips,.*$//' $TMPLOG | awk '{
val=int($1); sum[val]+=$2
} END { for (i=0; i<24; i++) { printf "%8d
%02d:00-%02d:59\n", sum[i], i, i } }' >> $TMP
+ $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.* for / /' -e 's/ recips,.*$//' $TMPLOG | $AWK '{
val=int($1); sum[val]+=$
2 } END { for (i=0; i<24; i++) { printf "%8d
%02d:00-%02d:59\n", sum[i], i, i } }' >> $TMP
else
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2005-09-22 16:17
Message:
Logged In: YES
user_id=18417
Okay, I took Mark's comments and incorporated them. Adrian Wells also
pointed out a log file difference between Mailman 2.1.5 and 2.1.6 that
caused the summary of the "smtp" log to be munged.
I've now fixed these bugs, deleted the old file, and uploaded the new one
(version 0.0.12).
Thanks!
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2005-09-10 19:22
Message:
Logged In: YES
user_id=1123998
Oooops! I mistakenly thought I could add the mmdsr.patch as
a downloadable file, but I can't so here it is. Watch out
for wrapped lines ...
--- mmdsr.orig 2005-09-06 20:37:53.000000000 -0700
+++ mmdsr 2005-09-10 18:33:14.532393572 -0700
@@ -132,6 +132,7 @@
MMDIR="/usr/local/mailman"
TMPDIR="/tmp"
+LOGDIR="/var/log/mailman"
###############################################################################
# Maximum number of subdirectory entries to display in report
@@ -234,9 +235,9 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" logs/$LOG >> $TMPLOG
+ $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >>
$TMPLOG
- if [ -f "logs/${LOG}" ] ; then
+ if [ -f "$LOGDIR/${LOG}" ] ; then
if [ "${LOG}" = "post" ] ; then
@@ -304,9 +305,9 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" logs/$LOG >> $TMPLOG
+ $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >>
$TMPLOG
- if [ -f "logs/${LOG}" ] ; then
+ if [ -f "$LOGDIR/${LOG}" ] ; then
if [ "${LOG}" = "error" ] ; then
@@ -453,4 +454,4 @@
$CAT $TMP
fi
-$RM $TMP
+$RM -f $TMP $TMPLOG
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2005-09-10 19:16
Message:
Logged In: YES
user_id=1123998
I tried the script and other than the expected site specific
changes, I found two issues which are both addressed by the
patch in the mmdsr.patch file.
1) Mailman's log files are not necessarily in
$var_prefix/logs/ - they can be in any directory. The patch
adds a LOGDIR directory independant of MMDIR.
2) The $TMPLOG file is not removed at completion. The patch
removes it.
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2005-09-06 07:06
Message:
Logged In: YES
user_id=18417
Okay, I've deleted the old version of the mmdsr script that was attached,
and uploaded the latest version. This is what we're currently using to
monitor the lists on python.org, and we have found it very useful.
Any comments you may have will be appreciated.
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2005-02-22 12:10
Message:
Logged In: YES
user_id=18417
The UID variable in the current code was already replaced by MYUID,
because I got complaints on other platforms. But UID wasn't available to
me as a useful constant, so I had to use something else to obtain the
value.
The recommended patch from tgc99 does work, and I will be uploading a
new version of the code soon.
----------------------------------------------------------------------
Comment By: adrianwi (adrianwi)
Date: 2005-02-22 07:22
Message:
Logged In: YES
user_id=1175103
Use of variable named UID does work well with OS X (version
10.2.8). Apparently the variable UID is a constant already
in use. When trying to the run the script without
modification, I was receiving the following error message:
UID: readonly variable
This issue was resolved by changing the name of variable,
UID, to something else, such as MMUID. Works fine with this
change.
As an aside (& for what it is worth), the UID grab command
suggested by tgc99 on 2005-02-16 03:15 works on this system
(OS X - version 10.2.8)
----------------------------------------------------------------------
Comment By: Tom G. Christensen (tgc99)
Date: 2005-02-16 00:15
Message:
Logged In: YES
user_id=1159458
The current UID grab command doesn't work on Solaris (2.6 &
8 tested).
I'd recommend this instead:
ps -o user -p $$|tail -1
This is tested and works on RH 6.2, RH 7.3, RHEL 2.1, RHEL3,
FC3, FreeBSD 4.9, Solaris 2.6, 8.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1123383&group_…
Patches item #1123383, was opened at 2005-02-15 12:14
Message generated for change (Comment added) made by msapiro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1123383&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: list administration
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Brad Knowles (shub)
Assigned to: Nobody/Anonymous (nobody)
Summary: Daily Status Report script...
Initial Comment:
Folks,
I quickly whacked together a Daily Status Report script for
Mailman (using Bourne shell, not Python ;), and thought that other
folks might be interested in seeing it.
The basic concept is a program that gets fired off at 23:59 every
night, and goes through a variety of log files looking for entries
specific to that date, and indicating problems or certain types of
activity that might be of interest to someone trying to administer
the server. It also does an "ls -la" of /usr/local/mailman/qfiles/*,
so that you can see what is in the queue at the time of the running
of the script.
My concept was that this daily report would get e-mailed to the
admin, or posted to a "reports" mailing list, where they could be
archived and kept for future reference.
The script does not (yet) do any statistics calculations, although it
should be relatively easy to hack together some basic stats using
awk, sort, etc....
Anyway, I thought I'd share it and let folks take a look at it, and if
anyone has any recommended improvements, we can incorporate
those and share them back out with everyone.
The code is written under a BSD-style license, so if you don't want
to contribute any changes back to me, that's okay. Of course, I
would prefer that you did, but I leave the choice up to you.
----------------------------------------------------------------------
>Comment By: Mark Sapiro (msapiro)
Date: 2008-01-03 11:34
Message:
Logged In: YES
user_id=1123998
Originator: NO
I have added two files.
Version 0.0.16 corrects a couple of typo/minor issues. It is the version
that has been in the contrib directory of the distribution since Mailman
2.1.8.
Version 0.0.17 processes two generations of rotated logs (assuming they
are named xxx and xxx.1 and xxx.1 exists) so that data is not lost on the
day the logs rotate. It also changes a deprecated sort key option to one
that should work with all sort commands. This version will be in the
contrib directory of the Mailman 2.1.10 distribution.
File Added: mmdsr
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2008-01-03 09:33
Message:
Logged In: YES
user_id=1123998
Originator: NO
File Added: mmdsr
----------------------------------------------------------------------
Comment By: Dave Yost (daveyost)
Date: 2007-01-12 23:32
Message:
Logged In: YES
user_id=330919
Originator: NO
I suggest incorporating the readme into the shell script, so there is only
the one file.
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2006-01-25 17:55
Message:
Logged In: YES
user_id=18417
Folks,
Okay, I just uploaded version 0.0.15, which addresses the most recent
comments here from Mark and Tom, and makes a few additional tweaks as
well. See the version comments at the top of the script.
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2005-11-06 10:25
Message:
Logged In: YES
user_id=1123998
The vette log summary lists posts held for moderation
individually under "Other Errors:". The following patch
(watch out for wrapped lines) summarizes them by list instead.
--- mmdsr 2005-09-29 21:31:33.000000000 -0700
+++ mmdsrx 2005-11-06 08:20:58.835895418 -0800
@@ -415,10 +415,15 @@
echo "------------------------------" >> $TMP
$GREP -i 'Posting to a moderated newsgroup' $TMPLOG |
$AWK '{ print $6 }' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
+ echo "" >> $TMP
+ echo "Post to moderated list (by list):" >> $TMP
+ echo "------------------------------" >> $TMP
+ $GREP -i 'Post to moderated list' $TMPLOG |
$AWK '{ print $6 }' | $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|Message
discarded, msgid)' $TMPLOG | $SED 's/^.* ([0-9]*) //' |
$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)' $TMPLOG | $SED
's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
else
----------------------------------------------------------------------
Comment By: Tom G. Christensen (tgc99)
Date: 2005-10-19 01:23
Message:
Logged In: YES
user_id=1159458
ps output on solaris is full of whitespace but a further
echo get's rid of it.
The lines in the smtp log are sometimes broken up by a
newline (right before the msgid) which throws of the
summary. Piping it through sed first will rejoin the broken
lines.
Use $AWK instead of awk.
Patch inserted below:
--- mmdsr.orig 2005-10-19 09:42:30.000000000 +0200
+++ mmdsr 2005-10-19 09:44:23.000000000 +0200
@@ -203,7 +203,8 @@
# there is an easier cross-platform way to do it,
please let me know.
###############################################################################
-MYUID=`$PS -o user -p $$ | $TAIL -1`
+GRABUID=`$PS -o user -p $$ | $TAIL -1`
+MYUID=`echo $GRABUID`
RUNAS="mailman"
###############################################################################
@@ -254,7 +255,7 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >>
$TMPLOG
+ $SED -e :a -e '$!N;s/\n //;ta' -e 'P;D' $LOGDIR/$LOG |
$GREP -si "^$DAY [0-9][0-9:]* $YEAR" >> $TMPLOG
if [ -f "$LOGDIR/${LOG}" ] ; then
@@ -264,7 +265,7 @@
echo "Hourly Summary of Posts" >> $TMP
echo "-----------------------" >> $TMP
- $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.*$//' $TMPLOG | $UNIQ -c | $SORT -n +1 | awk '{ printf(
"%8d %02d:00-%02d
:59\n", $1, $2, $2 ) }' >> $TMP
+ $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.*$//' $TMPLOG | $UNIQ -c | $SORT -n +1 | $AWK '{
printf( "%8d %02d:00-%02
d:59\n", $1, $2, $2 ) }' >> $TMP
echo "" >> $TMP
echo "Post Count by List" >> $TMP
@@ -295,7 +296,7 @@
echo "" >> $TMP
echo "Hourly Summary of Messages Sent" >> $TMP
echo "-------------------------------" >> $TMP
- $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.* for / /' -e 's/ recips,.*$//' $TMPLOG | awk '{
val=int($1); sum[val]+=$2
} END { for (i=0; i<24; i++) { printf "%8d
%02d:00-%02d:59\n", sum[i], i, i } }' >> $TMP
+ $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.* for / /' -e 's/ recips,.*$//' $TMPLOG | $AWK '{
val=int($1); sum[val]+=$
2 } END { for (i=0; i<24; i++) { printf "%8d
%02d:00-%02d:59\n", sum[i], i, i } }' >> $TMP
else
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2005-09-22 16:17
Message:
Logged In: YES
user_id=18417
Okay, I took Mark's comments and incorporated them. Adrian Wells also
pointed out a log file difference between Mailman 2.1.5 and 2.1.6 that
caused the summary of the "smtp" log to be munged.
I've now fixed these bugs, deleted the old file, and uploaded the new one
(version 0.0.12).
Thanks!
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2005-09-10 19:22
Message:
Logged In: YES
user_id=1123998
Oooops! I mistakenly thought I could add the mmdsr.patch as
a downloadable file, but I can't so here it is. Watch out
for wrapped lines ...
--- mmdsr.orig 2005-09-06 20:37:53.000000000 -0700
+++ mmdsr 2005-09-10 18:33:14.532393572 -0700
@@ -132,6 +132,7 @@
MMDIR="/usr/local/mailman"
TMPDIR="/tmp"
+LOGDIR="/var/log/mailman"
###############################################################################
# Maximum number of subdirectory entries to display in report
@@ -234,9 +235,9 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" logs/$LOG >> $TMPLOG
+ $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >>
$TMPLOG
- if [ -f "logs/${LOG}" ] ; then
+ if [ -f "$LOGDIR/${LOG}" ] ; then
if [ "${LOG}" = "post" ] ; then
@@ -304,9 +305,9 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" logs/$LOG >> $TMPLOG
+ $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >>
$TMPLOG
- if [ -f "logs/${LOG}" ] ; then
+ if [ -f "$LOGDIR/${LOG}" ] ; then
if [ "${LOG}" = "error" ] ; then
@@ -453,4 +454,4 @@
$CAT $TMP
fi
-$RM $TMP
+$RM -f $TMP $TMPLOG
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2005-09-10 19:16
Message:
Logged In: YES
user_id=1123998
I tried the script and other than the expected site specific
changes, I found two issues which are both addressed by the
patch in the mmdsr.patch file.
1) Mailman's log files are not necessarily in
$var_prefix/logs/ - they can be in any directory. The patch
adds a LOGDIR directory independant of MMDIR.
2) The $TMPLOG file is not removed at completion. The patch
removes it.
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2005-09-06 07:06
Message:
Logged In: YES
user_id=18417
Okay, I've deleted the old version of the mmdsr script that was attached,
and uploaded the latest version. This is what we're currently using to
monitor the lists on python.org, and we have found it very useful.
Any comments you may have will be appreciated.
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2005-02-22 12:10
Message:
Logged In: YES
user_id=18417
The UID variable in the current code was already replaced by MYUID,
because I got complaints on other platforms. But UID wasn't available to
me as a useful constant, so I had to use something else to obtain the
value.
The recommended patch from tgc99 does work, and I will be uploading a
new version of the code soon.
----------------------------------------------------------------------
Comment By: adrianwi (adrianwi)
Date: 2005-02-22 07:22
Message:
Logged In: YES
user_id=1175103
Use of variable named UID does work well with OS X (version
10.2.8). Apparently the variable UID is a constant already
in use. When trying to the run the script without
modification, I was receiving the following error message:
UID: readonly variable
This issue was resolved by changing the name of variable,
UID, to something else, such as MMUID. Works fine with this
change.
As an aside (& for what it is worth), the UID grab command
suggested by tgc99 on 2005-02-16 03:15 works on this system
(OS X - version 10.2.8)
----------------------------------------------------------------------
Comment By: Tom G. Christensen (tgc99)
Date: 2005-02-16 00:15
Message:
Logged In: YES
user_id=1159458
The current UID grab command doesn't work on Solaris (2.6 &
8 tested).
I'd recommend this instead:
ps -o user -p $$|tail -1
This is tested and works on RH 6.2, RH 7.3, RHEL 2.1, RHEL3,
FC3, FreeBSD 4.9, Solaris 2.6, 8.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1123383&group_…
Feature Requests item #1863246, was opened at 2008-01-03 08:11
Message generated for change (Comment added) made by msapiro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350103&aid=1863246&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Steve Burling (srburling)
Assigned to: Nobody/Anonymous (nobody)
Summary: command-line tool consistency
Initial Comment:
Could the command-line tools be made consistent in their lower-casing of list names?
Right now, for example, if you use the name output by list_lists (which seems to be the "pretty" name) as input to list_members, list_members lower-cases the input and properly lists the members. list_owners and list_admins, on the other hand, don't, although their failure modes are different.
There may be other commands that have this problem, these are just the two that I stumbled across today.
----------------------------------------------------------------------
>Comment By: Mark Sapiro (msapiro)
Date: 2008-01-03 11:33
Message:
Logged In: YES
user_id=1123998
Originator: NO
This report duplicates that in Patch 1842412.
Fixed in Mailman 2.1.10.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=350103&aid=1863246&group_…
Bugs item #1863311, was opened at 2008-01-03 17:59
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1863311&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Trent Mick (tmick)
Assigned to: Nobody/Anonymous (nobody)
Summary: admlogin.html puts "MailmanLogo" *after* the </body></html>
Initial Comment:
Mailman version: 2.1.9
The admlogin.html page puts the MailmanLogo() generated footer content *after* the close of the "body" and "html" tags. E.g.:
http://mail.python.org/mailman/admin/mailman-users
----------------------------
...
</FORM> </body> </html>
<hr><address><a
href="http://mail.python.org/mailman/listinfo/mailman-users">Mailman-Users</a>
list run by <a href="mailto:mailman-users-owner@python.org">barry at list.org,
brad at python.org</a><br><a
href="http://mail.python.org/mailman/admin/mailman-users">Mailman-Users
administrative interface</a> (requires authorization)<br><a
href="http://mail.python.org/mailman/listinfo">Overview of all python.org
mailing lists</a><p>
<table WIDTH="100%" BORDER="0">
<tr>
<td><img src="/icons/mailman.jpg" alt="Delivered by Mailman"
border=0><br>version 2.1.9</td>
<td><img src="/icons/PythonPowered.png" alt="Python Powered" border=0></td>
<td><img src="/icons/gnu-head-tiny.jpg" alt="GNU's Not Unix" border=0></td>
</tr>
</table>
</address>
----------------------------
Although browsers tend to handle this broken HTML, it foils attempts to use Apache mod_layout to add a footer (because it looks for </body> and insert footer content there.
See this bug for more details:
http://bugs.activestate.com/show_bug.cgi?id=73613
(It is a bug documenting the broken result attempting to use Apache mod_layout with this on a mailman installation for openkomodo.com.)
>From that bug:
--------------------------
...
The right answer would be to use the "<mm-mailman-footer>" template marker in
the "admlogin.html" template **however**, that won't work because
"admlogin.html" is using a different template mechanism than some of the other
".html" files in there. "<mm-mailman-footer>" will get replaced in, e.g.,
"listinfo.html", but not in "admlogin.html"
...
--------------------------
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100103&aid=1863311&group_…
Patches item #1123383, was opened at 2005-02-15 12:14
Message generated for change (Comment added) made by msapiro
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1123383&group_…
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: list administration
Group: Mailman 2.1
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Brad Knowles (shub)
Assigned to: Nobody/Anonymous (nobody)
Summary: Daily Status Report script...
Initial Comment:
Folks,
I quickly whacked together a Daily Status Report script for
Mailman (using Bourne shell, not Python ;), and thought that other
folks might be interested in seeing it.
The basic concept is a program that gets fired off at 23:59 every
night, and goes through a variety of log files looking for entries
specific to that date, and indicating problems or certain types of
activity that might be of interest to someone trying to administer
the server. It also does an "ls -la" of /usr/local/mailman/qfiles/*,
so that you can see what is in the queue at the time of the running
of the script.
My concept was that this daily report would get e-mailed to the
admin, or posted to a "reports" mailing list, where they could be
archived and kept for future reference.
The script does not (yet) do any statistics calculations, although it
should be relatively easy to hack together some basic stats using
awk, sort, etc....
Anyway, I thought I'd share it and let folks take a look at it, and if
anyone has any recommended improvements, we can incorporate
those and share them back out with everyone.
The code is written under a BSD-style license, so if you don't want
to contribute any changes back to me, that's okay. Of course, I
would prefer that you did, but I leave the choice up to you.
----------------------------------------------------------------------
>Comment By: Mark Sapiro (msapiro)
Date: 2008-01-03 09:33
Message:
Logged In: YES
user_id=1123998
Originator: NO
File Added: mmdsr
----------------------------------------------------------------------
Comment By: Dave Yost (daveyost)
Date: 2007-01-12 23:32
Message:
Logged In: YES
user_id=330919
Originator: NO
I suggest incorporating the readme into the shell script, so there is only
the one file.
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2006-01-25 17:55
Message:
Logged In: YES
user_id=18417
Folks,
Okay, I just uploaded version 0.0.15, which addresses the most recent
comments here from Mark and Tom, and makes a few additional tweaks as
well. See the version comments at the top of the script.
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2005-11-06 10:25
Message:
Logged In: YES
user_id=1123998
The vette log summary lists posts held for moderation
individually under "Other Errors:". The following patch
(watch out for wrapped lines) summarizes them by list instead.
--- mmdsr 2005-09-29 21:31:33.000000000 -0700
+++ mmdsrx 2005-11-06 08:20:58.835895418 -0800
@@ -415,10 +415,15 @@
echo "------------------------------" >> $TMP
$GREP -i 'Posting to a moderated newsgroup' $TMPLOG |
$AWK '{ print $6 }' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
+ echo "" >> $TMP
+ echo "Post to moderated list (by list):" >> $TMP
+ echo "------------------------------" >> $TMP
+ $GREP -i 'Post to moderated list' $TMPLOG |
$AWK '{ print $6 }' | $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|Message
discarded, msgid)' $TMPLOG | $SED 's/^.* ([0-9]*) //' |
$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)' $TMPLOG | $SED
's/^.* ([0-9]*) //' | $SORT | $UNIQ -c | $SORT -nr >> $TMP
else
----------------------------------------------------------------------
Comment By: Tom G. Christensen (tgc99)
Date: 2005-10-19 01:23
Message:
Logged In: YES
user_id=1159458
ps output on solaris is full of whitespace but a further
echo get's rid of it.
The lines in the smtp log are sometimes broken up by a
newline (right before the msgid) which throws of the
summary. Piping it through sed first will rejoin the broken
lines.
Use $AWK instead of awk.
Patch inserted below:
--- mmdsr.orig 2005-10-19 09:42:30.000000000 +0200
+++ mmdsr 2005-10-19 09:44:23.000000000 +0200
@@ -203,7 +203,8 @@
# there is an easier cross-platform way to do it,
please let me know.
###############################################################################
-MYUID=`$PS -o user -p $$ | $TAIL -1`
+GRABUID=`$PS -o user -p $$ | $TAIL -1`
+MYUID=`echo $GRABUID`
RUNAS="mailman"
###############################################################################
@@ -254,7 +255,7 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >>
$TMPLOG
+ $SED -e :a -e '$!N;s/\n //;ta' -e 'P;D' $LOGDIR/$LOG |
$GREP -si "^$DAY [0-9][0-9:]* $YEAR" >> $TMPLOG
if [ -f "$LOGDIR/${LOG}" ] ; then
@@ -264,7 +265,7 @@
echo "Hourly Summary of Posts" >> $TMP
echo "-----------------------" >> $TMP
- $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.*$//' $TMPLOG | $UNIQ -c | $SORT -n +1 | awk '{ printf(
"%8d %02d:00-%02d
:59\n", $1, $2, $2 ) }' >> $TMP
+ $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.*$//' $TMPLOG | $UNIQ -c | $SORT -n +1 | $AWK '{
printf( "%8d %02d:00-%02
d:59\n", $1, $2, $2 ) }' >> $TMP
echo "" >> $TMP
echo "Post Count by List" >> $TMP
@@ -295,7 +296,7 @@
echo "" >> $TMP
echo "Hourly Summary of Messages Sent" >> $TMP
echo "-------------------------------" >> $TMP
- $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.* for / /' -e 's/ recips,.*$//' $TMPLOG | awk '{
val=int($1); sum[val]+=$2
} END { for (i=0; i<24; i++) { printf "%8d
%02d:00-%02d:59\n", sum[i], i, i } }' >> $TMP
+ $SED -e 's/^[A-Z][a-z][a-z] *[0-9]* //' -e
's/:.* for / /' -e 's/ recips,.*$//' $TMPLOG | $AWK '{
val=int($1); sum[val]+=$
2 } END { for (i=0; i<24; i++) { printf "%8d
%02d:00-%02d:59\n", sum[i], i, i } }' >> $TMP
else
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2005-09-22 16:17
Message:
Logged In: YES
user_id=18417
Okay, I took Mark's comments and incorporated them. Adrian Wells also
pointed out a log file difference between Mailman 2.1.5 and 2.1.6 that
caused the summary of the "smtp" log to be munged.
I've now fixed these bugs, deleted the old file, and uploaded the new one
(version 0.0.12).
Thanks!
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2005-09-10 19:22
Message:
Logged In: YES
user_id=1123998
Oooops! I mistakenly thought I could add the mmdsr.patch as
a downloadable file, but I can't so here it is. Watch out
for wrapped lines ...
--- mmdsr.orig 2005-09-06 20:37:53.000000000 -0700
+++ mmdsr 2005-09-10 18:33:14.532393572 -0700
@@ -132,6 +132,7 @@
MMDIR="/usr/local/mailman"
TMPDIR="/tmp"
+LOGDIR="/var/log/mailman"
###############################################################################
# Maximum number of subdirectory entries to display in report
@@ -234,9 +235,9 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" logs/$LOG >> $TMPLOG
+ $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >>
$TMPLOG
- if [ -f "logs/${LOG}" ] ; then
+ if [ -f "$LOGDIR/${LOG}" ] ; then
if [ "${LOG}" = "post" ] ; then
@@ -304,9 +305,9 @@
$TOUCH $TMPLOG
echo "Log file: $LOG" >> $TMP
echo "==============================" >> $TMP
- $GREP -si "^$DAY [0-9][0-9:]* $YEAR" logs/$LOG >> $TMPLOG
+ $GREP -si "^$DAY [0-9][0-9:]* $YEAR" $LOGDIR/$LOG >>
$TMPLOG
- if [ -f "logs/${LOG}" ] ; then
+ if [ -f "$LOGDIR/${LOG}" ] ; then
if [ "${LOG}" = "error" ] ; then
@@ -453,4 +454,4 @@
$CAT $TMP
fi
-$RM $TMP
+$RM -f $TMP $TMPLOG
----------------------------------------------------------------------
Comment By: Mark Sapiro (msapiro)
Date: 2005-09-10 19:16
Message:
Logged In: YES
user_id=1123998
I tried the script and other than the expected site specific
changes, I found two issues which are both addressed by the
patch in the mmdsr.patch file.
1) Mailman's log files are not necessarily in
$var_prefix/logs/ - they can be in any directory. The patch
adds a LOGDIR directory independant of MMDIR.
2) The $TMPLOG file is not removed at completion. The patch
removes it.
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2005-09-06 07:06
Message:
Logged In: YES
user_id=18417
Okay, I've deleted the old version of the mmdsr script that was attached,
and uploaded the latest version. This is what we're currently using to
monitor the lists on python.org, and we have found it very useful.
Any comments you may have will be appreciated.
----------------------------------------------------------------------
Comment By: Brad Knowles (shub)
Date: 2005-02-22 12:10
Message:
Logged In: YES
user_id=18417
The UID variable in the current code was already replaced by MYUID,
because I got complaints on other platforms. But UID wasn't available to
me as a useful constant, so I had to use something else to obtain the
value.
The recommended patch from tgc99 does work, and I will be uploading a
new version of the code soon.
----------------------------------------------------------------------
Comment By: adrianwi (adrianwi)
Date: 2005-02-22 07:22
Message:
Logged In: YES
user_id=1175103
Use of variable named UID does work well with OS X (version
10.2.8). Apparently the variable UID is a constant already
in use. When trying to the run the script without
modification, I was receiving the following error message:
UID: readonly variable
This issue was resolved by changing the name of variable,
UID, to something else, such as MMUID. Works fine with this
change.
As an aside (& for what it is worth), the UID grab command
suggested by tgc99 on 2005-02-16 03:15 works on this system
(OS X - version 10.2.8)
----------------------------------------------------------------------
Comment By: Tom G. Christensen (tgc99)
Date: 2005-02-16 00:15
Message:
Logged In: YES
user_id=1159458
The current UID grab command doesn't work on Solaris (2.6 &
8 tested).
I'd recommend this instead:
ps -o user -p $$|tail -1
This is tested and works on RH 6.2, RH 7.3, RHEL 2.1, RHEL3,
FC3, FreeBSD 4.9, Solaris 2.6, 8.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=300103&aid=1123383&group_…