Great Circle Associates Majordomo-Users
(September 2003)
 

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

Subject: Re: Archiving problem
From: Daniel Liston <dliston @ sonny . org>
Date: Thu, 25 Sep 2003 17:26:16 -0500
To: michael_khan @ imail . fitsuny . edu
Cc: MajorDomo Users <majordomo-users @ greatcircle . com>
In-reply-to: <200309241143.AA155582704@mail-c108-01.fitsuny.edu>
References: <200309241143.AA155582704@mail-c108-01.fitsuny.edu>
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)

The majordomo.cf has "two" variables regarding archives.

# Majordomo will look for "get" and "index" files related to $list in
# directory "$filedir/$list$filedir_suffix", so set $filedir and
# $filedir_suffix appropriately.  For instance, to look in
# /usr/local/mail/files/$list, use:
#   $filedir = "/usr/local/mail/files";
#   $filedir_suffix = "";               # empty string
# or to look in $listdir/$list.archive, use:
#   $filedir = "$listdir";
#   $filedir_suffix = ".archive";

Setting $filedir="/opt/majordomo/archive"; is fine, but what is
the $filedir_suffix set to?

I "AssUme" your suffix is set to ".archive", as that is default.

In this configuration, your alias for test2-archive is correct,
but, you should be using archive2.pl rather than archive.pl.
Does the /opt/majordomo/archive/test2.archive/ subdirectory
exist?  Is it owned by majordomo?
You should also use -M instead of -m.  This provides the y2K
compliant 4 digit date on the test2 file.  You should end up
with;
/opt/majordomo/archive/test2.archive/test2.200309
and...
You might want to take a gander at the unofficial patches site
if you decide to use 4 digit years on your archive too.
Greatcircle.com did not catch their Y2K problem in this file.

Dan Liston

MICHAEL KHAN wrote:

> I am trying to start archiving but its not working. I did the following:
> 
>   1) edit the Majordomo.cf file   
>            $filedir="/opt/majordomo/archive";
> 
>   2) add the following line to Aliases file
>            test2-archive: "|/opt/majordomo/wrapper archive
>                  -f /opt/majordomo/archive/test2.archive/test2 -m -a"
> 
>   3) I copy from Tools dir archive2.pl to runtime dir
> 
>         Owner of archive dir is majordomo Permission 755.
>         What else I need to do here?
> 
>   Mike.
> ---
> [This E-mail scanned for viruses by Declude Virus]



References:
Indexed By Date Previous: Sendmail NOQUEUE failure?
From: Michael Craig Amper <ampermc@macbus.org>
Next: Re: infinite loop message
From: Daniel Liston <dliston@sonny.org>
Indexed By Thread Previous: Re: infinite loop message
From: Daniel Liston <dliston@sonny.org>
Next: Re: Archiving problem
From: Daniel Liston <dliston@sonny.org>

Google
 
Search Internet Search www.greatcircle.com