On August 23, 1999 at 21:54, [EMAIL PROTECTED] wrote:
> Aug 23 10:15:38 marmot mailme: Modification of non-creatable array
> value attempted, subscript -2 at /usr/lib/MHonArc/mhtxthtml.pl line
> 177, <FOPEN4> chunk 41.
The problem has to do with a text/html part where the base URL
is not defined and there are relative URLs in the HTML. The
html part was not attached properly, but MHonArc should not croak
because of it.
I have attached a patch for mhtxthtml.pl (based on v2.4.3 MHonArc
release, file SCCS ID: mhtxthtml.pl 2.9 99/08/14 19:38:33) to this message.
If you have an earlier version, you should be able to manually
apply the edits.
--ewh
*** mhtxthtml.pl.org Wed Aug 25 11:03:20 1999
--- mhtxthtml.pl Wed Aug 25 10:59:08 1999
***************
*** 162,167 ****
--- 162,169 ----
sub addbase {
my($b, $u) = @_;
+ return $u if !defined($b) || $b !~ /\S/;
+
my($ret);
$u =~ s/^\s+//;
if ($u =~ m%^$Url%o || $u =~ m/^#/) {
***************
*** 175,181 ****
$b =~ s/\/$//;
my @a = split(/\//, $b);
my $cnt = 0;
! while ($u =~ s|^(\.{1,2})/||) { ++$cnt if length($1) == 2; }
splice(@a, -$cnt) if $cnt > 0;
$b = join('/', @a, "");
--- 177,184 ----
$b =~ s/\/$//;
my @a = split(/\//, $b);
my $cnt = 0;
! while ( $cnt <= scalar(@a) &&
! $u =~ s|^(\.{1,2})/|| ) { ++$cnt if length($1) == 2; }
splice(@a, -$cnt) if $cnt > 0;
$b = join('/', @a, "");