Bug of Mail Index (Re: MHonArc v2.5.0b Is Available)

2001-09-03 21:46:18

I've reported from some MHonArc (v2.5.0b) user in Japan that
the links of [Next Page] on Mail Index pages are ALWAYS to
maillist.html when MULTIPG is specified in rc file.

For example, [Next Page] in maillist.html is linked to
maillist.html itself, not to mail2.html.

It seems this is because $PageNum is declared as lexically
local (by `my') in

I believe the attached patch fixes this problem.

Best regards,

Takashi P.KATOH

---,orig     Tue Sep  4 09:50:31 2001
+++  Tue Sep  4 10:48:56 2001
@@ -34,7 +34,7 @@
     my $onlypg = shift;
     my($outhandle, $i, $i_p0, $filename, $tmpl, $isfirst, $tmp,
          $offstart, $offend);
-    my($PageNum, $PageSize, $totalpgs);
+    local($PageNum, $PageSize, $totalpgs);
<Prev in Thread] Current Thread [Next in Thread>