
20 Dec
2000
20 Dec
'00
5:26 p.m.
Maryann Stopha wrote:
Hi, I need to get a list of all the admins for our Mailman system, and wondered if anyone could help me with this. I have tried to grep them out, but it has not worked with getting info out of the .db files. Does anyone know a simple way to accomplish this?
--
___
/ F
[[[]]]] ( O O ) #----------------0000--(_)--0000---------------# | Juan Carlos Rey Anaya (jcrey@uma.es) | | Servicio Central de informática | | Universidad de Málaga - España | #----------------------------------------------# # Solo se que cada vez se menos :-| # #----------------------------------------------# #! /usr/bin/env python # # Copyright (C) 1998 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """List all the owners of a mailing list. Usage: %(program)s --help -h Print this help message and exit. """ import sys import getopt import paths from Mailman import MailList, Utils from Mailman import Errors program = sys.argv[0] def usage(status, msg=''): print __doc__ % globals() if msg: print msg sys.exit(status) def main(): try: opts, args = getopt.getopt( sys.argv[1:], 'h', ['help']) except getopt.error, msg: usage(1, msg) for opt, arg in opts: if opt in ('-h', '--help'): usage(0) for L in Utils.list_names(): try: mlist = MailList.MailList(L, lock=0) except (Errors.MMUnknownListError, Errors.MMListNotReady): print "La lista ", L, "no se puede abrir :-(" print "Lista:", L, "\tPropietario:", mlist.owner if __name__ == '__main__': main()
[[[]]]] ( O O ) #----------------0000--(_)--0000---------------# | Juan Carlos Rey Anaya (jcrey@uma.es) | | Servicio Central de informática | | Universidad de Málaga - España | #----------------------------------------------# # Solo se que cada vez se menos :-| # #----------------------------------------------# #! /usr/bin/env python # # Copyright (C) 1998 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License # as published by the Free Software Foundation; either version 2 # of the License, or (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. """List all the owners of a mailing list. Usage: %(program)s --help -h Print this help message and exit. """ import sys import getopt import paths from Mailman import MailList, Utils from Mailman import Errors program = sys.argv[0] def usage(status, msg=''): print __doc__ % globals() if msg: print msg sys.exit(status) def main(): try: opts, args = getopt.getopt( sys.argv[1:], 'h', ['help']) except getopt.error, msg: usage(1, msg) for opt, arg in opts: if opt in ('-h', '--help'): usage(0) for L in Utils.list_names(): try: mlist = MailList.MailList(L, lock=0) except (Errors.MMUnknownListError, Errors.MMListNotReady): print "La lista ", L, "no se puede abrir :-(" print "Lista:", L, "\tPropietario:", mlist.owner if __name__ == '__main__': main()