[Mailman-Developers] creating a list of moderators

2006-01-11 Thread David Benson
Hi,
 
I'm a site administrator and I'd like to be able to automatically compile a
list of 'list moderators' so that I can send them all announcements.  I
can't find a way to do this in the current version, and I saw similar
functionality being requested on the 'wishlist', so I assume that it has yet
to be implemented.
 
I'm new to Mailman, but I'd like to try writing a script to do this.  Can
anyone advise me on how to go about it/where to start?
 
Any ideas?
 
Many thanks!
 

Dave Benson
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
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-developers/archive%40jab.org

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


Re: [Mailman-Developers] creating a list of moderators

2006-01-11 Thread Robby Griffin
Um, take a look at `bin/list_owners -m`. It might be nice to have a 
sort of live mailing list for them rather than a list of their 
addresses, though.

--Robby

On Jan 11, 2006, at 12:41, David Benson wrote:

 I'm a site administrator and I'd like to be able to automatically 
 compile a
 list of 'list moderators' so that I can send them all announcements.  I
 can't find a way to do this in the current version, and I saw similar
 functionality being requested on the 'wishlist', so I assume that it 
 has yet
 to be implemented.

 I'm new to Mailman, but I'd like to try writing a script to do this.  
 Can
 anyone advise me on how to go about it/where to start?

___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
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-developers/archive%40jab.org

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


Re: [Mailman-Developers] creating a list of moderators

2006-01-11 Thread Joshua Ginsberg
Something like this?


import cPickle, os, os.path, sys

MAILMANHOME='/var/mailman' ;# change to suit
sys.path.append(MAILMANHOME)
moderators = []

for dir in os.listdir(os.path.join(MAILMANHOME, 'lists')):
  o = cPickle.load(open(os.path.join(MAILMANHOME, 'lists', dir, 'config.pck')))
  for email in o['moderator']:
email in moderators or moderators.append(email)

return moderators



On Wed, 2006-01-11 at 12:41 -0500, David Benson wrote:
 Hi,
  
 I'm a site administrator and I'd like to be able to automatically compile a
 list of 'list moderators' so that I can send them all announcements.  I
 can't find a way to do this in the current version, and I saw similar
 functionality being requested on the 'wishlist', so I assume that it has yet
 to be implemented.
  
 I'm new to Mailman, but I'd like to try writing a script to do this.  Can
 anyone advise me on how to go about it/where to start?
  
 Any ideas?
  
 Many thanks!
  
 
 Dave Benson
 ___
 Mailman-Developers mailing list
 Mailman-Developers@python.org
 http://mail.python.org/mailman/listinfo/mailman-developers
 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-developers/jag%40fsf.org
 
 Security Policy: 
 http://www.python.org/cgi-bin/faqw-mm.py?req=showfile=faq01.027.htp
 
-- 
Joshua Ginsberg [EMAIL PROTECTED]
Free Software Foundation - Senior Systems Administrator


signature.asc
Description: This is a digitally signed message part
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
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-developers/archive%40jab.org

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

Re: [Mailman-Developers] creating a list of moderators

2006-01-11 Thread Hans-Martin Mosner
David Benson wrote:

Hi,
 
I'm a site administrator and I'd like to be able to automatically compile a
list of 'list moderators' so that I can send them all announcements.  I
can't find a way to do this in the current version, and I saw similar
functionality being requested on the 'wishlist', so I assume that it has yet
to be implemented.
  

It's already mostly there: The command list_owners -m prints all 
owners and moderators of all mailing lists on your machine.
Getting these into a mailing list should not be that hard...

Cheers,
Hans-Martin
___
Mailman-Developers mailing list
Mailman-Developers@python.org
http://mail.python.org/mailman/listinfo/mailman-developers
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-developers/archive%40jab.org

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