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" <[EMAIL PROTECTED]>
To: "Kiat Huang" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
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                [EMAIL PROTECTED]
> MEMS Exchange                            http://www.mems-exchange.org
>
> ------------------------------------------------------
> Mailman-Users maillist  -  [EMAIL PROTECTED]
> http://mail.python.org/mailman/listinfo/mailman-users


------------------------------------------------------
Mailman-Users maillist  -  [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users

Reply via email to