Skip to Content.
Sympa Menu

devel - [sympa-dev] sympa.pl regex bug preventing delivery to bad-* lists

Subject: Developers of Sympa

List archive

Chronological Thread  
  • From: Sergiy Zhuk <address@concealed>
  • To: address@concealed
  • Subject: [sympa-dev] sympa.pl regex bug preventing delivery to bad-* lists
  • Date: Tue, 3 Jul 2007 22:34:30 -0700 (PDT)

hi

I've stumbled upon an unpleasant bug preventing delivery to any list starting
with the "bad-" prefix.
There's an incorrect /i switch in the regexp that checks the filename so it
wouldn't process "broken" messages, which start with "BAD-" (uppercase).
Removing /i fixes the issue (see below, patch vs version 5.3.2).

thanks

--- sympa.pl.orig Tue Jul 3 22:32:29 2007
+++ sympa.pl Tue Jul 3 22:32:40 2007
@@ -887,7 +887,7 @@
($*, $/) = @parser_param;

## test ever if it is an old bad file
- if ($t_filename =~ /^BAD\-/i){
+ if ($t_filename =~ /^BAD\-/){
if ((stat "$t_spool/$t_filename")[9] < (time -
&Conf::get_robot_conf($robot, 'clean_delay_queue')*86400) ){
unlink ("$t_spool/$t_filename") ;
&do_log('notice',"Deleting bad message %s because too old",
$t_filename);

--
rgds,
serge


  • [sympa-dev] sympa.pl regex bug preventing delivery to bad-* lists, Sergiy Zhuk, 07/04/2007

Archive powered by MHonArc 2.6.19+.

Top of Page