Reply / Maybe Reply line bug fix

From: Peter C. McCluskey <pcm_at_rahul.net_at_hypermail-project.org>
Date: Tue, 7 Dec 1999 18:17:23 -0800 (PST)
Message-Id: <19991208021723.4B82030B_at_foxtrot.rahul.net>

 bre_at_netverjar.is ("Bjarni R. Einarsson") writes (about a month ago):
>One quick unrelated thing - are the "Reply:" and "Maybe Reply:" lines in
>hypermail 2b25's output working as expected?

 No. I've appended a patch to 2b28 which fixes them to probably work as well as the current threading allows. It does tend to make the limitations of the current threading more obvious. The set_linkquotes option that I plan to introduce when the code freeze ends will fix many of those threading problems.

>What is the Reply line for, anyway? It's totally unclear to me.

 When working, it helps you find the replies to the message you're reading.

 	    if (set_showreplies) {
 		for (rp = replylist; rp != NULL; rp = rp->next) {
-		    if (rp->msgnum == num) {
+		    if (rp->frommsgnum == num
+			&& hashnumlookup(rp->msgnum, &email2)) {
 			if (rp->maybereply)
 			    fprintf(fp, "<LI><STRONG>%s:</STRONG>",
 				    lang[MSG_MAYBE_REPLY]);
_at_@ -872,10 +873,9 @@
 			    fprintf(fp, "<LI><STRONG>%s:</STRONG>",
 				    lang[MSG_REPLY]);
 			fprintf(fp, " <A HREF=\"%.4d.%s\">",
-				rp->frommsgnum, set_htmlsuffix);
-			fprintf(fp, "%s: \"%s\"</A>\n",
-				rp->data->name,
-				ptr = convchars(rp->data->subject));
+				rp->msgnum, set_htmlsuffix);
+			fprintf(fp, "%s: \"%s\"</A>\n", email2->name,
+				ptr = convchars(email2->subject));
 			free(ptr);
 		    }
 		}
_at_@ -977,7 +977,8 @@
 		   This should be cleaned up to use threadprint.c functions */
 
 		for (rp = replylist; rp != NULL; rp = rp->next) {
-		    if (rp->msgnum == num) {
+		    if (rp->frommsgnum == num
+			&& hashnumlookup(rp->msgnum, &email2)) {
 			if (rp->maybereply)
 			    fprintf(fp, "<LI><STRONG>%s:</STRONG>",
 				    lang[MSG_MAYBE_REPLY]);
_at_@ -985,10 +986,9 @@
 			    fprintf(fp, "<LI><STRONG>%s:</STRONG>",
 				    lang[MSG_REPLY]);
 			fprintf(fp, " <A HREF=\"%.4d.%s\">",
-				rp->frommsgnum, set_htmlsuffix);
-			fprintf(fp, "%s: \"%s\"</A>\n",
-				rp->data->name,
-				ptr = convchars(rp->data->subject));
+				rp->msgnum, set_htmlsuffix);
+			fprintf(fp, "%s: \"%s\"</A>\n", email2->name,
+				ptr = convchars(email2->subject));
 			free(ptr);
 		    }
 		}

-- 
------------------------------------------------------------------------
Peter McCluskey          | Boycott Amazon.com until they stop suing
http://www.rahul.net/pcm | companies that support 1-click shopping.
Received on Wed 08 Dec 1999 04:18:32 AM GMT

This archive was generated by hypermail 2.2.0 : Thu 22 Feb 2007 07:33:52 PM GMT GMT