Re: [Mailman-Users] Last Email

2007-04-17 Thread Mark Sapiro
Matt Zimmerman wrote:

The only error I am getting is:

AttributeError: 'module' object has no attribute 'py'

Does this make any sense?


It means you are running

 bin/withlist -a -r last_post_date.py

instead of

 bin/withlist -a -r last_post_date


The name of the file is last_post_date.py, but module/callable name in
the withlist command doesn't have the .py extension.


On 4/15/07, Mark Sapiro [EMAIL PROTECTED] wrote:

 Save the data between the dashed lines as bin/last_post_date.py and run

 bin/withlist -a -r last_post_date

-- 
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Last Email

2007-04-17 Thread Matt Zimmerman
Thanks for the script.

The only error I am getting is:

AttributeError: 'module' object has no attribute 'py'

Does this make any sense?

On 4/15/07, Mark Sapiro [EMAIL PROTECTED] wrote:

 Matt Zimmerman wrote:
 
 I have about 1200 lists in mailman 2.1.8. I looking to try and clean
 these
 lists up. Has anybody written any scripts to look through the archives
 and
 find out when the last email was sent to each list.

 Save the data between the dashed lines as bin/last_post_date.py and run

 bin/withlist -a -r last_post_date

 
 import time

 def last_post_date(mlist):
 print 'list - %s: last post - %s' % (mlist.real_name,
 time.ctime(mlist.last_post_time))
 

 --
 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=showamp;file=faq01.027.htp


[Mailman-Users] Last Email

2007-04-15 Thread Matt Zimmerman
Mailman-users,

I have about 1200 lists in mailman 2.1.8. I looking to try and clean these
lists up. Has anybody written any scripts to look through the archives and
find out when the last email was sent to each list.

Thanks.
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Last Email

2007-04-15 Thread Paul Tomblin
Matt Zimmerman wrote:
 Mailman-users,
 
 I have about 1200 lists in mailman 2.1.8. I looking to try and clean these
 lists up. Has anybody written any scripts to look through the archives and
 find out when the last email was sent to each list.
 

If I were looking for lists that haven't been posted to for a while, I'd 
use the modified time on the mbox files:

cd /var/lib/mailman/archives/private
find . -type f -name \*.mbox -mtime +180 -print


-- 
Paul Tomblin [EMAIL PROTECTED]
Stay calm, be brave, and wait for the signs!
--
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=showamp;file=faq01.027.htp


Re: [Mailman-Users] Last Email

2007-04-15 Thread Mark Sapiro
Matt Zimmerman wrote:

I have about 1200 lists in mailman 2.1.8. I looking to try and clean these
lists up. Has anybody written any scripts to look through the archives and
find out when the last email was sent to each list.

Save the data between the dashed lines as bin/last_post_date.py and run

bin/withlist -a -r last_post_date


import time

def last_post_date(mlist):
print 'list - %s: last post - %s' % (mlist.real_name,
time.ctime(mlist.last_post_time))


-- 
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=showamp;file=faq01.027.htp