
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?
Thanks, Maryann Stopha
Web Development Professional Computing & Information Technology SUNY Geneseo 716.245.5577 stopha@geneseo.edu

On Thu, Dec 14, 2000 at 02:20:13PM -0500, Maryann Stopha wrote:
cd ~mailman/lists; for i in *; do echo "$i: "~mailman/bin/dumpdb $i/config.db | grep "'owner'"
; done
Marc
Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key

Maryann Stopha wrote:
--
___
/ 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()

Juan Carlos, I like this! I'm going to add it to the Mailman 2.1 tree (with a few modifications).
Thanks! -Barry

On Thu, Dec 14, 2000 at 02:20:13PM -0500, Maryann Stopha wrote:
cd ~mailman/lists; for i in *; do echo "$i: "~mailman/bin/dumpdb $i/config.db | grep "'owner'"
; done
Marc
Microsoft is to operating systems & security .... .... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | Finger marc_f@merlins.org for PGP key

Maryann Stopha wrote:
--
___
/ 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()

Juan Carlos, I like this! I'm going to add it to the Mailman 2.1 tree (with a few modifications).
Thanks! -Barry
participants (4)
-
barry@digicool.com
-
Juan Carlos Rey Anaya
-
Marc MERLIN
-
Maryann Stopha