It does not quite work like that Daniel. The wrapper just provides
a level of security keeping majordomo in it's own sandbox when it
runs. I also "assume" you are running sendmail.
Archiving requires some preconfiguration steps. You need to be
aware of the $filedir and $filedir_suffix settings in your
majordomo.cf file. You have to create subdirectories based on
those settings, and create or change some aliases for the new
procedure.
Example, if majordomo.cf has
$homedir = "/var/majordomo";
$listdir = "$homedir/lists";
$filedir = "$listdir";
$filedir_suffix = ".archive";
and the list you want to archive is
test
You would need to
mkdir /var/majordomo/lists/test.archive
chmod 755 /var/majordomo/lists/test.archive
You would also need aliases like
test: "|/var/majordomo/wrapper resend -l test test-outgoing"
test-out: :include:/var/majordomo/lists/test,test-archive
test-archive: "|/var/majordomo/wrapper archive2.pl -f
/var/majordomo/lists/test.archive/test -a -M"
owner-test: postmaster,
test-approval: owner-test
Note the beginning and ending quotes for test-archive. If you
do not put it all on one line, the second line must be indented.
Dan Liston
clark wrote:
>
> Hello:
>
> I've read the docs, faq, etc. I'm a newbie to majordomo. What is the switch I
> need to add to wrapper to get it to archive?
>
> Daniel Clark
> Information Technology Professional
> MSU Computer Laboratory
> phone: (517) 355-4500 x191
> fax: (517) 353-9847
> pager: (517) 794-3790
> text-paging: clark@pager.msu.edu
References:
|
|