[ Colin Henein writes: ]
>
> I got tired of editing the majordomo.cf file to add a new archive
> directory everytime I added a new list (since I want them all in their
> own directories).
>
> I changed archive2.pl so that it allows you to specify a directory of
> the form "/foo/bar/quux*" in the array of directories in majordomo.cf.
> archive2.pl takes this to mean that it should expect ONE (and only
> one) subdirectory after /foo/bar/quux and accept it as a valid archive
> directory.
You didn't have to do that, it's already done. All you need to do is
specify:
@archive_dirs = </path/to/archive/dir/*>;
Note the angle brackets and lack of quotes. That's a Perl file glob
(similar to a shell file glob, e.g. 'ls *.pl') that returns all files
(and directories, too, unfortunately) in /path/to/archive/dir. Remember
that the majordomo.cf file is executed by Perl, so you can put all sorts
of useful things there (but you probably shouldn't).
--
Dave Wolfe *Not a spokesman for Motorola* (512) 891-3246
Motorola MMTG 6501 Wm. Cannon Dr. W. OE112 Austin TX 78735-8598
Follow-Ups:
References:
|
|