Re: [Mailman-Users] MMDSR Question

2009-02-15 Thread Jeff Grossman
Brad Knowles wrote:
> on 2/14/09 10:49 AM, Jeff Grossman said:
>> I have not been able to find any answers
>> via Google or the mailing list archives.  I have set up all of the
>> parameters, but the program never finishes running.  When I run it from
>> the command line, it never returns the command line, just continues
>> running forever.  Any help would be appreciated.  I am running this on
>> an OS X 10.3.9 machine.  The temp file that it creates gets as far as:
>
> I never tried to run the script on a MacOS X machine.  On the Linux and
> FreeBSD machines where I run it (including the server for python.org,
> where this list is hosted), I don't see these kinds of problems.
>
> Have you tried adding a "-vx" option on the first line of the script, so
> that you can see each and every line of the code as it is executed?
>
No, I never tried the "-vx" option, actually I don't really know where I
would run that.

But, I did figure out my problem.  I decided to look over the script line
by line.  And, when I came to the line write after the "Other Errors"
section it was cut with a bunch of line feeds.  I removed the line feeds
and now it works correctly.  For some reason pico must be splitting that
line when it saves it.  Here is the line in question:

$EGREP -vi '(Uncaught runner exception|No such
list|Traceback|shunting)' $TMPLOG | $SED -e 's/^.* ([0-9]*)
//' -e 's/unparseable message.*/unparseable message/' -e
's/preserving file.*/preserving file/' | $SORT | $UNIQ -c |
$SORT -nr >> $TMP

It was cutting the variable $TMPLOG with line feeds.

Thanks for your help.  Everything in regards to MMDSR is now working
correctly.

Jeff

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] MMDSR Question

2009-02-15 Thread Mark Sapiro
Jeff Grossman wrote:

>I know the mmdsr program is an unsupported application, but I am hoping
>somebody here can help me out.  I have not been able to find any answers
>via Google or the mailing list archives.  I have set up all of the
>parameters, but the program never finishes running.  When I run it from
>the command line, it never returns the command line, just continues
>running forever.  Any help would be appreciated.  I am running this on
>an OS X 10.3.9 machine.  The temp file that it creates gets as far as:
>
> 
>
>Message held -- Post by non-member (by list):
>
>--
>
> 
>
>Message held -- Suspicious header (by list):
>
>--
>
> 
>
>Discarded posting (by list):
>
>--
>
> 
>
>Bulk/Junk message discarded (by list):
>
>--
>
> 
>
>Implicit destination (by list):
>
>--
>
> 
>
>Post to moderated newsgroup (by list):
>
>--
>
> 
>
>Post to moderated list (by list):
>
>--
>
> 
>
>Other Errors:
>
>--



This says that the script has gotten to this point and has gotten
almost to the end of the 'for' loop because the stuff above is for the
'vette' log which is the last log in $ERR_LOGS.


echo "**" >> $TMP
echo "Log File Squawks" >> $TMP
echo "**" >> $TMP
echo "" >> $TMP

for LOG in $ERR_LOGS
do
...


So it seems to be hung on the

$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 

command which is the next thing after

echo "" >> $TMP
echo "Other Errors:" >> $TMP
echo "--" >> $TMP

since if it got past that egrep, that's the end of the for loop, and
the next thing is

echo "**" >> $TMP
echo "Queue Directory Contents" >> $TMP
echo "**" >> $TMP
echo "" >> $TMP

and you don't see that.

You could confirm this by putting

echo "Before EGREP"

and

echo "After EGREP"

around that egrep command and running the script manually. If it is the
egrep, this will display "Before EGREP" but not "After EGREP". If it
displays both, then the problem is that for some reasen, the 

for LOG in $ERR_LOGS

is not terminating.

-- 
Mark Sapiro The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] MMDSR Question

2009-02-15 Thread Larry Stone
On 2/15/09 1:43 AM, Brad Knowles at b...@shub-internet.org wrote:

 
> I never tried to run the script on a MacOS X machine.  On the Linux and
> FreeBSD machines where I run it (including the server for python.org,
> where this list is hosted), I don't see these kinds of problems.

I have MMDSR running on Mac OS X but as I recall, I made a lot of changes to
it to both make it work and have it do what I wanted it to do. There were
definitely some syntax changes and, I think, some binary file location
differences to be to be accommodated.

-- 
Larry Stone
lston...@stonejongleux.com
http://www.stonejongleux.com/


--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] MMDSR Question

2009-02-14 Thread Brad Knowles

on 2/14/09 10:49 AM, Jeff Grossman said:


I know the mmdsr program is an unsupported application, but I am hoping
somebody here can help me out.


I'm the original author of mmdsr (now that it's been checked into source 
control, Mark has been the last person to make any changes to it), but 
it's a script I just quickly hacked together.


Nevertheless, I'll try to provide what assistance I can.


I have not been able to find any answers
via Google or the mailing list archives.  I have set up all of the
parameters, but the program never finishes running.  When I run it from
the command line, it never returns the command line, just continues
running forever.  Any help would be appreciated.  I am running this on
an OS X 10.3.9 machine.  The temp file that it creates gets as far as:


I never tried to run the script on a MacOS X machine.  On the Linux and 
FreeBSD machines where I run it (including the server for python.org, 
where this list is hosted), I don't see these kinds of problems.


Have you tried adding a "-vx" option on the first line of the script, so 
that you can see each and every line of the code as it is executed?



Message held -- Post by non-member (by list):

--

 


Message held -- Suspicious header (by list):

--

 


Discarded posting (by list):

--

 


Bulk/Junk message discarded (by list):

--

 


Implicit destination (by list):

--

 


Post to moderated newsgroup (by list):

--

 


Post to moderated list (by list):

--

 


Other Errors:

--


I'm not seeing any output in any of these sections here.  Is that the 
way it actually appears on your end, or did you leave some stuff out?


--
Brad Knowles
If you like Jazz/R&B guitar, check out
LinkedIn Profile: my friend bigsbytracks on YouTube at
http://preview.tinyurl.com/bigsbytracks
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


[Mailman-Users] MMDSR Question

2009-02-14 Thread Jeff Grossman
I know the mmdsr program is an unsupported application, but I am hoping
somebody here can help me out.  I have not been able to find any answers
via Google or the mailing list archives.  I have set up all of the
parameters, but the program never finishes running.  When I run it from
the command line, it never returns the command line, just continues
running forever.  Any help would be appreciated.  I am running this on
an OS X 10.3.9 machine.  The temp file that it creates gets as far as:

 

Message held -- Post by non-member (by list):

--

 

Message held -- Suspicious header (by list):

--

 

Discarded posting (by list):

--

 

Bulk/Junk message discarded (by list):

--

 

Implicit destination (by list):

--

 

Post to moderated newsgroup (by list):

--

 

Post to moderated list (by list):

--

 

Other Errors:

--

 

 

 

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: http://wiki.list.org/x/QIA9


Re: [Mailman-Users] mmdsr question

2007-10-29 Thread Troy Campbell
Thanks alot for the info Mark and the script Brad!  It was 
"/var/spool/mailman"
in my case.  Useful information..

When there are new updates to this report script how might we know?
Are you going to send notices out periodically to this list?

Thanks
Troy


on 10/29/2007 02:54 PM Mark Sapiro said the following:
> Brad Knowles wrote:
>   
>>  # find /var -name qfiles -print
>>
>> And hope that catches it.
>> 
>
>
> That usually gets it, but in the RedHat FHS compliant package, the
> directory isn't named 'qfiles', so
>
>   # find /var -name virgin -print
>
> might be more successful.
>
>   
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] mmdsr question

2007-10-29 Thread Brad Knowles
On 10/29/07, Troy Campbell wrote:

>  When there are new updates to this report script how might we know?

If I make any further updates to the script, I will post about them 
to the mailman-users list.  I'll also make sure that the version 
available for download via the "patches" link is updated, and I'll 
work with Mark to make sure that the version you get in contrib/ is 
also updated.

>  Are you going to send notices out periodically to this list?

Periodically?  No.  But if I make any further changes, yes.


BTW, since I'm expecting Mailman 2.1.10 to be released soon, this 
might be a good time for people to chime in with enhancements they'd 
like to see made to mmdsr.  It would be nice to get this updated 
before 2.1.10 gets released.

-- 
Brad Knowles <[EMAIL PROTECTED]>
LinkedIn Profile: 
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] mmdsr question

2007-10-29 Thread Brad Knowles
On 10/29/07, Mark Sapiro wrote:

>  That usually gets it, but in the RedHat FHS compliant package, the
>  directory isn't named 'qfiles', so

D'oh!

>   # find /var -name virgin -print
>
>  might be more successful.

Just goes to show you how much I know about Red Hat

/me 

-- 
Brad Knowles <[EMAIL PROTECTED]>
LinkedIn Profile: 
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] mmdsr question

2007-10-29 Thread Mark Sapiro
Brad Knowles wrote:
>
>   # find /var -name qfiles -print
>
>And hope that catches it.


That usually gets it, but in the RedHat FHS compliant package, the
directory isn't named 'qfiles', so

# find /var -name virgin -print

might be more successful.

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] mmdsr question

2007-10-29 Thread Brad Knowles
On 10/29/07, Troy Campbell wrote:

>  I'm trying to figure out how to find out the location of my queue
>  directory e.g.,
>  for the mmdsr script:
>
>  QUEUEDIR="/var/lib/mailman/qfiles"

That all depends on where your version of Mailman is configured to 
store those files.


If you downloaded and installed the version of Mailman from our 
official sources (see ), then the 
location would be "/usr/local/mailman/qfiles/".

However, if you instead installed from a binary package that was 
built by someone else, you'd need to find out where they put that 
stuff.  Somewhere under /var is a good guess, but unless you find 
someone who's installed the same binary package of Mailman on the 
same platform, then you're left with doing a command like:

# find /var -name qfiles -print

And hope that catches it.

-- 
Brad Knowles <[EMAIL PROTECTED]>
LinkedIn Profile: 
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


Re: [Mailman-Users] mmdsr question

2007-10-29 Thread Mark Sapiro
Troy Campbell wrote:

>I'm trying to figure out how to find out the location of my queue 
>directory e.g.,
>for the mmdsr script:
>
>QUEUEDIR="/var/lib/mailman/qfiles"


Look in mm_cfg.py and Defaults.py for a definition of QUEUE_DIR.  If
this is a RedHat FHS compliant package, it's "/var/spool/mailman/" (no
'qfiles' directory).

-- 
Mark Sapiro <[EMAIL PROTECTED]>   The highway is for gamblers,
San Francisco Bay Area, Californiabetter use your sense - B. Dylan

--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp


[Mailman-Users] mmdsr question

2007-10-29 Thread Troy Campbell
I'm trying to figure out how to find out the location of my queue 
directory e.g.,
for the mmdsr script:

QUEUEDIR="/var/lib/mailman/qfiles"

Thanks
Troy
--
Mailman-Users mailing list
Mailman-Users@python.org
http://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
http://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Security Policy: 
http://www.python.org/cgi-bin/faqw-mm.py?req=show&file=faq01.027.htp