How to compile all addresses subbed to all lists on a system

Have any of you found an automated way to slurp all of the addresses off of all the lists on your system and then subscribe them to another list on the system? I know that I could simply subscribe all of the lists to a master list, but that option has turned into a nightmare for us for a variety of reasons.
Thanks for any help!
-- Sarah

On Thu, May 24, 2001 at 03:05:31PM -0700, Sarah K. Miller wrote:
Have any of you found an automated way to slurp all of the addresses off of all the lists on your system and then subscribe them to another list on the system?
bin/list_users <listname> > /tmp/list1.txt bin/add_members /tmp/list1.txt <new-listname>
Repeat for every list on your system. Really easy.
Bill
-- Bill Bradford mrbill@mrbill.net Austin, TX

On Thu, 24 May 2001, Bill Bradford wrote:
On Thu, May 24, 2001 at 03:05:31PM -0700, Sarah K. Miller wrote:
Have any of you found an automated way to slurp all of the addresses off of all the lists on your system and then subscribe them to another list on the system?
bin/list_users <listname> > /tmp/list1.txt bin/add_members /tmp/list1.txt <new-listname>
It is list_members, not list_users. Also, I would recommend using the -n and -d options with list_members to get digested and non-digested members seperately, and then adding them seperately.
It would be really nice to have a version of list_members which dumped all user properties (nomail, digest, passwd, etc) and a corresponding version of add_members that parsed it. This would be useful when copying lists between servers.
alex

bin/list_users <listname> > /tmp/list1.txt bin/add_members /tmp/list1.txt <new-listname>
It is list_members, not list_users. Also, I would recommend using the -n and -d options with list_members to get digested and non-digested members seperately, and then adding them seperately.
For me, the digest/non-digest part is not important. What I've got is a system announcement list that notifies all users/members when something they need to know about is going to happen. Has anybody automated this process? I want it to update everyday and I don't want to sit there and hand type the entire process for 100 lists each time ....
-- Sarah

Cron is your friend. Worst case you need to update the script when you add/remove a list.
On Thu, 24 May 2001, Sarah K. Miller wrote:
bin/list_users <listname> > /tmp/list1.txt bin/add_members /tmp/list1.txt <new-listname>
It is list_members, not list_users. Also, I would recommend using the -n and -d options with list_members to get digested and non-digested members seperately, and then adding them seperately.
For me, the digest/non-digest part is not important. What I've got is a system announcement list that notifies all users/members when something they need to know about is going to happen. Has anybody automated this process? I want it to update everyday and I don't want to sit there and hand type the entire process for 100 lists each time ....
-- Sarah
Mailman-Users maillist - Mailman-Users@python.org http://mail.python.org/mailman/listinfo/mailman-users

On May 24, 2001 at 17:42, Robert A. Hayden wrote:
Cron is your friend. Worst case you need to update the script when you add/remove a list.
How about bin/list_lists ?
-- Satya. <URL:http://satya.virtualave.net/> US-bound grad students! For pre-apps, see <URL:http://quickapps.cjb.net/> "Never underestimate the bandwidth of a station wagon full of tapes hurtling down the highway." -- Andrew Tanenbaum in _Computer Networks_

----- Original Message ----- From: "Bill Bradford" <mrbill@mrbill.net>
On Thu, May 24, 2001 at 03:05:31PM -0700, Sarah K. Miller wrote:
Have any of you found an automated way to slurp all of the addresses off of all the lists on your system and then subscribe them to another list on the system?
bin/list_users <listname> > /tmp/list1.txt bin/add_members /tmp/list1.txt <new-listname>
Here's the solution I came up with. Much easier then doing it for each individual list. In my case, it's set as a cron job to run in the middle of the night every night. Note: de-announce is the name of the master list I'm using -- replace it with the list of your choice.
#!/bin/ksh
/home/mailman/bin/remove_members -a de-announce
cd /home/mailman/lists/
for i in ls
do echo $i
touch /home/mailman/tmp/masterlist.txt
/home/mailman/bin/list_members -o /home/mailman/tmp/masterlist.txt $i
/home/mailman/bin/add_members -n /home/mailman/tmp/masterlist.txt -w n de-announce
rm /home/mailman/tmp/masterlist.txt
done
-- Sarah
participants (5)
-
alex wetmore
-
Bill Bradford
-
Robert A. Hayden
-
Sarah K. Miller
-
Satya