Great Circle Associates Majordomo-Users
(April 1995)
 

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

Subject: Re: large volumes?
From: "Jonathan M. Bresler" <jmb @ kryten . atinc . com>
Date: Wed, 19 Apr 1995 09:49:06 -0400 (EDT)
To: Marko Toivanen <mtoivane @ cc . joensuu . fi>
Cc: Deborah A Hamilton <debbie @ qsun . ho . att . com>, splyaski @ cmp . com, majordomo-users @ GreatCircle . COM
In-reply-to: <199504190920.MAA14401@cc.joensuu.fi>

On Wed, 19 Apr 1995, Marko Toivanen wrote:

> Responding to a previous article by Deborah A Hamilton:
> * Also - sorting the large mailing lists by host.domain.name made
> * our mailer more efficient.
> 
> So, anybody got a sort program that would sort beginning from the end of
> each line where the most significat domain lies, and would also lock the
> list file to prevent majordomo using while sorting?

	here is a bourne shell  script, change the first line to use your 
mail lists directory.  this process all lists as one.   no locking sorry, 
but it is fast, the odds are in your favor that you wont need locking.

	if you want to do one list only remove the "# <===" line and 
cat the list to the script  'cat <listname> | sh <script>

:
( cd /home/mail/lists ; ls | fgrep -v . | xargs cat ) |	   # <====
sed '
/".*"/s///
/.*<\(.*\)>/s//\1/
/[      ]*(.*).*$/s///
' | tr '[A-Z]' '[a-z]' | rev | sort -u | rev | awk '
{ printf ("%70s\n",$1); }
'

	now if you were to reorder each list based upon the output of the 
above shell script, then every user at site foo.bar.com would be served 
before going to the next site.   hmmmm....could be good ;)

Jonathan M. Bresler  jmb@kryten.atinc.com	| Analysis & Technology, Inc.  
						| 2341 Jeff Davis Hwy
play go.					| Arlington, VA 22202
ride bike. hack FreeBSD.--ah the good life	| 703-418-2800 x346



References:
Indexed By Date Previous: Creating and maintaining digests
From: sweeney@ipas.afip.mil (Nina Sweeney)
Next: Re: local list protection & rcs
From: Marko Toivanen <mtoivane@cc.joensuu.fi>
Indexed By Thread Previous: Re: large volumes?
From: Marko Toivanen <mtoivane@cc.joensuu.fi>
Next: Re: large volumes?
From: dwolfe@risc.sps.mot.com (Dave Wolfe)

Google
 
Search Internet Search www.greatcircle.com