[Mailman-Users] Hierarchical mailing-lists?

Szilard Vizi vizisz at freemail.hu
Tue Jan 8 14:43:04 CET 2002


Hello,

Jerome Warnier writes:
> I would like to have all members of various mailing-lists to be automatically 
> subscribed to one mailing-list joining them all.
You need a script something like this:

----------------------join.sh----------------------------------
#!/bin/bash
find /home/mailman/lists/ -type d|sed 's/\/home\/mailman\/lists\///g' > /tmp/listnames
for i in `cat /tmp/listnames`; do /home/mailman/bin/list_members $i > /tmp/member1; done
sort /tmp/member1|uniq > /tmp/members
/home/mailman/bin/sync_members --welcome-msg=no -f /tmp/members $1

rm -f /tmp/listnames /tmp/member1 /tmp/members
---------------------join.sh-----------------------------------

Run like this:
% ./join.sh joined_mailinglist_name

After that remove the unwanted mailing-lists, keep only the joined
mailinglist.

I haven't tested this script, please be carefully with it and modify
for your configuration.

Bye,

Szilard Vizi
-------------
mailto:vizisz at freemail.hu             UIN:10676592




More information about the Mailman-Users mailing list