Subject: Index-Format SCORE bug

From: Chuck Goodhart <[email-masked]>
Date: Sun, 26 May 2002 21:08:51 -0700 (PDT)

Attached is a patch to version 4.44 to fix the following bug:

The index-format token SCORE may not work if the sort-order is not
Arrival.

-- 
Chuck Goodhart <[email-masked]>
--- pine4.44/pine/mailindx.c.orig	Wed Nov 21 08:56:17 2001
+++ pine4.44/pine/mailindx.c	Sat May 25 22:24:34 2002
@@ -3282,7 +3282,6 @@
 		    SEARCHSET *ss = NULL;
 
 		    ss = mail_newsearchset();
-		    ss->first = ss->last = (unsigned long)idata->msgno;
 		    if(ss){
 			/*
 			 * This looks like it might be expensive to get the
@@ -3307,6 +3306,7 @@
 			 * will cause us to do the scores calculation later
 			 * when we are no longer in the callback.
 			 */
+		        ss->first = ss->last = (unsigned long)idata->rawno;
 			idata->bogus =
 			    (calculate_some_scores(current_index_state->stream,
 						   ss, idata->no_fetch) == 0)