Subject: Developers of Sympa
List archive
- From: Mathieu Kretchner <address@concealed>
- To: address@concealed
- Subject: Re: [sympa-dev] Archived.pl
- Date: Tue, 29 Apr 2008 11:57:09 +0200
So I think, I resolve the bug with a substitution of code at the line 194 in archived.pl, I replace :
my @files = (grep(!/^\./, readdir DIR ));
by
my @files = readdir (DIR);
and now the rebuild operation are well done !
Now I would like to determine if there is no side effects with this change ?
Thanks.
Mathieu Kretchner a écrit :
Hello all,
It seems that the archived.pl can't do this part of code (line 302 of archived.pl)
}elsif ($file =~ /^\.rebuild\.(.*)$/ ) {
($Log::log_level >= 1) && do_log('debug',"rebuild found : $file for list $1");
&rebuild($1);
unless (unlink("$queue/$file")) {
($Log::log_level >= 0) && do_log ('err',"Ignoring file $queue/$file because couldn't remove it, archived.pl must use the same uid as sympa");
next;
}
In order to test it, I try to touch some files directly in the outgoing spool and the results show that all files without a "." at the beginning are caught by the daemon, but the command .rebuild or .remove are not interpreted.
Could someone test it for me with the 5.4.2 ?
Do you think the line 194 is correct ? Because this regexp list all the files which aren't beginning with a "." (dot)
my @files = (grep(!/^\./, readdir DIR ));
begin:vcard fn:Mathieu Kretchner n:Kretchner;Mathieu org:INRIA;Syslog adr;dom:;;2007 route des lucioles - BP93;Sophia Antipolis;;06902 CEDEX email;internet:address@concealed tel;work:04 92 38 76 67 x-mozilla-html:FALSE version:2.1 end:vcard
-
[sympa-dev] quiet option removed from reject command?,
Adam Bernstein, 04/17/2008
-
[sympa-dev] Re: quiet option removed from reject command?,
Adam Bernstein, 04/17/2008
- [sympa-dev] Web Archive format mhonarc, Mathieu Kretchner, 04/24/2008
-
[sympa-dev] Web Archive format mhonarc again :),
Mathieu Kretchner, 04/25/2008
-
[sympa-dev] Archived.pl,
Mathieu Kretchner, 04/29/2008
- Re: [sympa-dev] Archived.pl, Mathieu Kretchner, 04/29/2008
-
[sympa-dev] Archived.pl,
Mathieu Kretchner, 04/29/2008
-
[sympa-dev] Re: quiet option removed from reject command?,
Adam Bernstein, 04/17/2008
Archive powered by MHonArc 2.6.19+.