[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mailman-developers
Subject:    Re: [Mailman-Developers] creating a list of moderators
From:       Joshua Ginsberg <jag () fsf ! org>
Date:       2006-01-11 19:48:34
Message-ID: 1137008914.13112.26.camel () localhost ! localdomain
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


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=show&file=faq01.027.htp
> 
-- 
Joshua Ginsberg <jag@fsf.org>
Free Software Foundation - Senior Systems Administrator

["signature.asc" (application/pgp-signature)]

_______________________________________________
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/mailman-developers%40progressive-comp.com


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




[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic