[Mailman-Users] getting a subscriber's lists
Jon Carnes
jonc at haht.com
Tue Oct 2 20:45:58 CEST 2001
You might also try using the Mailman command "find_member" in ~mailman/bin.
This command finds all lists that a specified user is on.
To let ordinary users run it, look into implementing sudo. Sudo is a
package that lets users run programs as a specified other user. In this
case your users would be running the command as the user mailman. Of course
you could just let the users su as mailman or leave a process open that runs
as the user mailman and provides the info folks ask for...
HtH, Jon Carnes
----- Original Message -----
From: "Greg Ward" <gward at mems-exchange.org>
To: "Kiat Huang" <khuang at redhat.com>
Cc: <mailman-users at python.org>
Sent: Tuesday, October 02, 2001 2:09 PM
Subject: Re: [Mailman-Users] getting a subscriber's lists
> On 02 October 2001, Kiat Huang said:
> > Is there a way through the web interface or other means (say as the
> > mailman admin, or a user not root (linux)) that can list all the lists a
> > given user is subscribed to?
>
> This works for me as root (using bash):
> cd ~mailman
> for list in lists/* ; do
> ./bin/list_members $list | grep -s $address && echo $list
> done
>
> Any user in group "mailman" should be able to run this as well. It's
> inefficient, but as long as you don't have 100 lists with 10000
> subscribers each, it shouldn't be too painful.
>
> Greg
> --
> Greg Ward - software developer gward at mems-exchange.org
> MEMS Exchange http://www.mems-exchange.org
>
> ------------------------------------------------------
> Mailman-Users maillist - Mailman-Users at python.org
> http://mail.python.org/mailman/listinfo/mailman-users
More information about the Mailman-Users
mailing list