Skip to Content.
Sympa Menu

devel - [sympa-dev] Depth of list archive directory

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Christian Dahlhausen <address@concealed>
  • To: address@concealed
  • Cc: address@concealed
  • Subject: [sympa-dev] Depth of list archive directory
  • Date: Tue, 13 Jul 2010 11:35:03 -0400

Hi,

is there a deeper reason that the list archive directory must be at least in 4 subdirectories?

looking at tools.pl it requires the directory tree to be at least 4 directories deep.

sub remove_dir {

    do_log('debug2','remove_dir()');

    foreach my $current_dir (@_){
        my @tree = split /\//, $current_dir ;
        if ($#tree < 4) {
            do_log('err',"$current_dir not removed (not enough / in directory name)");
            next;
        }
        finddepth({wanted => \&del, no_chdir => 1},$current_dir);
    }


We moved our archive directory to  /list_archive/wwsarchive which imposes a problem if we purge a list (and therefore Sympa tries to delete the archives).

Would there be any reason not to change

        if ($#tree < 4) {
to
        if ($#tree < 2) {

?


--
-----------------------------------------------------------
Christian Dahlhausen, Network Systems Engineer
University of Virginia - ITC Network Systems
PO Box 400324, 2015 Ivy Road, Charlottesville, VA 22904



  • [sympa-dev] Depth of list archive directory, Christian Dahlhausen, 07/13/2010

Archive powered by MHonArc 2.6.19+.

Top of Page