![]()
From: Peter C. McCluskey (pcm@rahul.net)
Date: Mon Mar 06 2000 - 15:32:50 CST
jpl@vectorbd.com (Jim Lill) writes:
>
>I tried to run the existing hypetombox.pl on some stuff from 1997 made
>with 1.02 or 1.03 and then take the mbox and run it thru 2b29. The
>threading is crazy. Is that a fact of life?
hypetombox.pl has been reusing inreplyto's from prior messages when a
message has no inreplyto, which causes some crazy threading.
Here's a patch which fixes that, and also fixes a bug which rejected
some subject lines. Could someone please check this in to cvs?
--- hypetombox.pl 2000/03/06 20:58:30 1.3
+++ hypetombox.pl 2000/03/06 21:15:40
@@ -60,6 +60,10 @@
# Loop on lines in the file
$state = 'HeaderComments';
+ foreach $fld (@fields)
+ {
+ $$fld = '';
+ }
my $line;
@@ -69,7 +73,7 @@
# same name.
if($state eq 'HeaderComments'
- && ($line =~ /^<!-- (\w+)="([^\"]+)" -->$/)) {
+ && ($line =~ /^<!-- (\w+)="(.+)" -->$/)) {
$key = $1;
$value = $2;
$value =~ s/&/&/g;
-- ------------------------------------------------------------------------ Peter McCluskey | Boycott Amazon.com until they stop suing http://www.rahul.net/pcm | companies that support 1-click shopping.
![]()