....
>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:
|
|