[Mailman-Users] dump all list users from cli

Mark Sapiro mark at msapiro.net
Mon Apr 14 19:28:14 CEST 2008

bergenpeak at comcast.net wrote:

>Is there a way to dump all the members of all lists in a single command?    Something like "list_members -o - *" ?  The output would be something like:
>list-name  email-address

The output won't be exactly as above, but

  bin/find_member .

(note the '.' regexp matching any address) will give you

user1 at example.com found in:
user2 at example.com found in:
user3 at example.com found in:

If you really want output as you indicate, something like

 for list in `bin/list_lists --bare`; do
   bin/list_members $list | sed "s/^/$list /"

will do it.

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list