(late reply, better than never)
After investigating several methods of fixing this problem, I've chosen
one. Which turns out to be the simplest, only 3 lines of additional code.
Here it is:
-------------------------------------------------------------------------
## Remove old message if hit maximum size or expiration
if (!$IDXONLY && (($MAXSIZE && ($NumOfMsgs > $MAXSIZE)) ||
$ExpireTime || $ExpireDateTime)) {
$TmpSUBSORT = $SUBSORT; #PJS HACK - save SUBSORT setting
$SUBSORT = 0; #PJS HACK - set SUBSORT Off
if ($REVSORT) {
@array = reverse &sort_messages();
}
else {
@array = &sort_messages();
}
$SUBSORT= $TmpSUBSORT; #PJS HACK - restore SUBSORT to orig setting
-----------------------------------------------------------------------------
The fix will not work of $AUTHSORT is set. The proper fix is to
set @array as follows:
@array = sort increase_index keys %Subject;
Try this.
--ewh