[Mailman-Users] Finding List Moderators

Magnus Solvang magnus at skiinfo.no
Sun Mar 18 13:03:06 CET 2001


Quoting Andreas Schamanek <Andreas.Schamanek at univie.ac.at>:
[...]
| Something along the lines of
| 
|   (mailman_home)/bin/config_list -o - mylistname | grep "owner = "
| 
| gives you the address of the list-owner.
[...]

Here is an ugly perl-hack (I don't know Python, yet :)
that loops through the lists and does the above for
each list. Put it in the bin-directory (or change
the relative paths).

#!/usr/bin/perl -w
# list_owners.pl
use strict;
use vars qw /@lists $list $listname $junk $owner/;

@lists = `./list_lists`;
shift @lists;
foreach $list (@lists) {
  ($listname,$junk) = split (/-/,$list);
  $listname =~ s/\s//g;
  $owner = `./config_list -o - $listname | grep "owner = "`;
  chomp $owner;
  $owner =~ s/.*\'(.*)\'.*/$1/g;
  print "Owner of $listname: $owner\n";
}

- M




More information about the Mailman-Users mailing list