Skip to Content.
Sympa Menu

en - my archived.pl rebuild doesn't work

Subject: The mailing list for listmasters using Sympa

List archive

Chronological Thread  
  • From: Olivier Ricou <address@concealed>
  • To: address@concealed
  • Subject: my archived.pl rebuild doesn't work
  • Date: Sun, 20 Apr 2003 10:16:03 +0200

Hi,

Here is the directory of my sympa list :

bash-2.05a# ls bureau/
archives config.1 config.3 config.6 config.9 msg_count
config config.10 config.4 config.7 config~ stats
config.0 config.2 config.5 config.8 info

bash-2.05a# ls bureau/archives/
last_message log.2003w05 log.2003w07 log.2003w11 log.2003w13
log.2003w04 log.2003w06 log.2003w08 log.2003w12 log.2003w14


And here is the part of archived.pl to rebuild the HTML archive.

else{
do_log('debug',"Rebuilding $adrlist archive completely");

if (!opendir(DIR, "$wwsconf->{'arc_path'}/$adrlist" )) {
do_log('notice',"unable to open
$wwsconf->{'arc_path'}/$adrlist to rebuild archive");
return ;
}
my @archives = (grep (/^\d{4}-\d{2}/, readdir(DIR)));
close DIR ;

foreach my $arc (@archives) {
$arc =~ /^(\d{4})-(\d{2})$/ ;
my $yyyy = $1 ;
my $mm = $2 ;

system "$wwsconf->{'mhonarc'} -rcfile $mhonarc_ressources
-outdir $wwsconf->{'arc_path'}/$adrlist/$yyyy-$mm -definevars
\"listname=$listname hostname=$hostname yyyy=$yyyy mois=$mm
yyyymm=$yyyy-$mm wdir=$wwsconf->{'arc_path'}
base=$Conf{'wwsympa_url'}/arc \" -umask $Conf{'umask'}
$wwsconf->{'arc_path'}/$adrlist/$arc/arctxt";
}

I can see in debug mode and in the log a "Rebuilding address@concealed
archive completely" but nothing after since it does not enter in the
foreach loop.

If I substitue $arc =~ /^(\d{4})-(\d{2})$/ ; for
$arc =~ /^.*(\d{4})w(\d{2})$/; then I enter in the loop but I have
problem later.

Any hint ?

Olivier.

ps : I use the Debian stable version.
ii sympa 3.3.3-3 Modern mailing list manager
ii wwsympa 3.3.3-3 Web interface for administrating Sympa



  • my archived.pl rebuild doesn't work, Olivier Ricou, 04/20/2003

Archive powered by MHonArc 2.6.19+.

Top of Page