Great Circle Associates Majordomo-Users
(May 1997)
 

Indexed By Date: [Previous] [Next] Indexed By Thread: [Previous] [Next]

Subject: Getting rid of bad names, short script
From: sysop @ ecology . bio . dfo . ca (Bill Silvert)
Date: Tue, 27 May 1997 13:31:22 -0300 (ADT)
To: Majordomo-Users @ GreatCircle . COM (Majordomo Users)

I just moved my mail server to a new machine and installed 1.94.3 and
sent out mail to all subscribers about the change. Two comments that may
prove useful to others:

(1) The way in which I send out notices to all subscribers is to combine
all the lists into one, using the (unix) command

sort -u all-subscribers -u -f list1 list2 ....

which insures that each subscriber gets only a single copy of the
announcement, no matter how many lists he or she belongs to. Note that
this can also be used to send messages to any subset of the lists (we
have lots of subscribers who belong to a general list as well as one or
more specialised lists). For safety, use restrict-post to make sure that
no one else can send mail to all-subscribers!

(2) The following script is handy for deleting bad addresses from
multiple lists:

  ---------------------- cut here ---------------------
#!/bin/sh
# Unsubscribe the arguments from all lists
PROG=`basename $0`
DIR=/.../majordomo/Lists

case $# in
0)	echo "Nothing done, usage is: $PROG name [...]"
	exit 1 ;;
*)	cd $DIR
	FILES=`\ls | grep -v '\.'`
	(
	for i
	do
		for L in `grep -i -l $i $FILES`
		do
			PASSWORD=`cat $L.passwd`
			echo "approve $PASSWORD unsubscribe $L $i"
		done
	done
	echo end
	) | Mail majordomo
	;;
esac
exit 0
  ---------------------- cut here ---------------------

--
BIOME SysOp, Habitat Ecology Section, Bedford Institute of Oceanography
P. O. Box 1006, Dartmouth, Nova Scotia, CANADA B2Y 4A2.  Tel. (902)426-1577


Indexed By Date Previous: Re: testing majordomo
From: Salvador Luis da Silva Faustino <salvador@leopard.ebonet.net>
Next: Re: CCing of subscribers.
From: Rich Pieri <rich.pieri@prescienttech.com>
Indexed By Thread Previous: Re: testing majordomo
From: Salvador Luis da Silva Faustino <salvador@leopard.ebonet.net>
Next: Can't get mailserv to work - sendmail trips
From: Mark Rauterkus <mrauterkus@sportsurf.net>

Google
 
Search Internet Search www.greatcircle.com