Great Circle Associates Majordomo-Users
(June 1996)
 

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

Subject: Re: On using archive2.pl
From: bill @ celestial . com (Bill Campbell)
Organization: Celestial Software, Mercer Island, WA 98040
Date: Tue, 4 Jun 1996 08:52:07 -0700 (PDT)
To: J . F . L . Hopkinson @ dl . ac . uk
Cc: lisah @ bdc . cirrus . com, majordomo-users @ greatcircle . com
In-reply-to: <199606040833.JAA11589@mserv1.dl.ac.uk> from "J. Hopkinson" at Jun 4, 96 09:33:13 am
Reply-to: bill @ Celestial . COM

....
>I use put the archive files for eg list  sample  in the directory
> /path/to/majordomo/archives/sample
>and similary for all other lists.  Using a suggestion from this
>discussion list, my majordomo.cf file contains the lines:
>
># the safe locations for archive directories. This should be defined as
># a series of root anchored directory paths as will be used as prefixes
># to the file names specified to the archive2.pl script.
>@archive_dirs =  (  </src/majord/archives/*> );
>
While this will work, it requires expansion every time the majordomo.cf
file is accessed.  On a busy mail site this could be thousands of
times a day.

I had considered building a file that could be included in something
like:
@archive_dirs = (
	require 'dirfile.pl'
);

I rejected that approach because it would require an additional disk access
every time that majordomo.cf is parsed.  Instead of doing this I have a
new-list script that creates a new majordomo.cf file from a prototype file,
majordomo.cf.in, with all the valid archive directories in it.  This way
the parsing and directory scanning is done only when a list is added so
there's no ongoing overhead associated with it.

Bill
--
INTERNET:   bill@Celestial.COM  Bill Campbell; Celestial Systems, Inc.
UUCP:               camco!bill  PO Box 820; 2835 82nd Avenue S.E. S-100
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676
URL: http://www.celestial.com/

Cutting the space budget really restores my faith in humanity.  It
eliminates dreams, goals, and ideals and lets us get straight to the
business of hate, debauchery, and self-annihilation.
		-- Johnny Hart


References:
Indexed By Date Previous: [no subject]
From: jason@3ws.com (Jason Burns)
Next: [no subject]
From: jason@3ws.com (Jason Burns)
Indexed By Thread Previous: Re: On using archive2.pl
From: "J. Hopkinson" <J.F.L.Hopkinson@dl.ac.uk>
Next: installation problems
From: Daniel Dekok <talor@weblink.solutions.net.au>

Google
 
Search Internet Search www.greatcircle.com