🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #51240

Re: slrn bug, i think

#51240
From: John E. Davis
Date: Mon, 30 Aug 1999 00:00
35 lines
1922 bytes
On 30 Aug 1999 01:04:52 GMT, jmd <jmd@bogus.host>
wrote:
>   61427  comp.unix.questions                                    61295-61818
[...]
>comp.unix.questions: 61304-61694

   Your newsrc file indicates that you read articles 61304 to 61694.
This means that you did not read articles the 61303 articles in the
range 1-61303.  Hence, the number of unread articles is 61303 + (61818
- 61694), or 61427 as indicated.

   The real question is why doesn't your newsrc line read, e.g.,
   
comp.unix.questions: 1-61294,61304-61694

I do not have an answer for this and all I can suggest is that you
apply the following patch to slrn/src/group.c:

--- group.c~	Mon May 17 01:07:38 1999
+++ group.c	Mon Aug 30 01:25:38 1999
@@ -568,6 +568,12 @@
 	
 	slrn_add_group_ranges (Slrn_Group_Current_Group, min, max);
      }
+
+   if ((g->range.next != NULL)
+       && (g->range.next->min < g->unread)
+       && (g->range.next->min > 1))
+     g->unread -= g->range.next->min - 1;
+
    return 0;
 }
 

Technical Details
Message-ID: <slrn7sk68t.n8j.davis@aluche.mit.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <7q7sdf$58l$1@eve.enteract.com> <7qaf32$191$1@eve.enteract.com> <slrn7shoc5.kch.davis@aluche.mit.edu> <7qclbk$m9c$1@eve.enteract.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn7sk68t.n8j.davis@aluche.mit.edu>
Subject: Re: slrn bug, i think
Date: Mon, 30 Aug 1999 00:00:00 +0000
From: davis@space.mit.edu (John E. Davis)
References: <7q7sdf$58l$1@eve.enteract.com> <7qaf32$191$1@eve.enteract.com> <slrn7shoc5.kch.davis@aluche.mit.edu> <7qclbk$m9c$1@eve.enteract.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 518757209
X-Complaints-To: usenet@eecs-usenet-02.mit.edu
X-Trace: eecs-usenet-02.mit.edu 935991583 23450 18.75.2.45 (30 Aug 1999 05:39:43 GMT)
Organization: Center for Space Research
User-Agent: slrn/0.9.5.7 (UNIX)
Reply-To: davis@space.mit.edu
NNTP-Posting-Date: 30 Aug 1999 05:39:43 GMT
Newsgroups: news.software.readers