Quoting Andreas Schamanek <[EMAIL PROTECTED]>:
[...]
| 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
------------------------------------------------------
Mailman-Users maillist - [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users