On September 27, 1999 at 14:03, Earl Hood wrote:

> > So I tried using <IDXSIZE>, but That didn't work very well.
> > Running the appended rcfile on seven messages, it produces an
> > RDF index page with 7 - 5 = 2 blank entries. 
> 
> This is a bug, and unfortunately, a tricky one to find a clean fix.
> Setting IDXSIZE less than MAXSIZE for a single page index will
> cause this problem.  If you look closely, you will also notice that
> the listing references the wrong data also.

It looks like the bug fix is much easier than I was expecting.
I have attached patch to mhindex.pl
(SCCS ID: mhindex.pl 1.4 99/06/25 14:21:22), that hopefully fixes
the problem.

        --ewh

*** mhindex.pl.org      Mon Sep 27 15:15:21 1999
--- mhindex.pl  Mon Sep 27 15:15:37 1999
***************
*** 69,81 ****
        } else {
            if ($IDXSIZE && (($i = ($#MListOrder+1) - $IDXSIZE) > 0)) {
                if ($REVSORT) {
!                   splice(@MListOrder, $IDXSIZE);
                } else {
!                   splice(@MListOrder, 0, $i);
                }
            }
            $IDXPATHNAME = join($DIRSEP, $OUTDIR, $IDXNAME);
-           *a = *MListOrder;
        }
        $PageSize = scalar(@a);
            
--- 69,80 ----
        } else {
            if ($IDXSIZE && (($i = ($#MListOrder+1) - $IDXSIZE) > 0)) {
                if ($REVSORT) {
!                   @a = @MListOrder[0..($IDXSIZE-1)];
                } else {
!                   @a = @MListOrder[$i..$#MListOrder];
                }
            }
            $IDXPATHNAME = join($DIRSEP, $OUTDIR, $IDXNAME);
        }
        $PageSize = scalar(@a);
            

Reply via email to