🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #21126

Re: slrn bugs

#21126
From: John Caruso
Date: Wed, 01 May 1996 00:00
95 lines
5199 bytes
On 30 Apr 1996 04:41:10 GMT, John E. Davis <davis@space.mit.edu> wrote:
>
>:Many versions of slrn ago the percentage code changed from counting by 10s
>:(10%, 20%...) to a "continuous" count.  It hasn't worked correctly since
>
>I found one obvious bug in the routine art.c:get_headers.  Here is a patch:
>
>      }
>    nntp_close_xover ();
>    
>+   total -= (max - expected_num) + 1;
>+   
>    slrn_set_suspension (0);
>    *totalp = total;

Unfortunately this patch didn't seem to fix the percentages.


Regarding the "disappearing postings" problem, you'd suggested:

>Ok, try this experiment which should be equivalent and tell me what happens.
>If it is not equivalent, please point out where the equivalence breaks down.
> 
>1) run slrn.  
>2) Select a high volume newsgroup, e.g., comp.lang.c.  There should be
>   several thousand articles here.
>3) Enter the newsgroup via `ESC 1 RETURN RETURN'.  This will cause slrn to
>   load all the headers for the group.
>4) Turn off sorting (ESC s and select NONE).  The headers will be arranged
>   in the order in which the server received them-- from oldest to newest.
>5) press `c' to mark all articles as read.
>6) Now unmark as read the first 3 and the last 3.  In other words, mark the
>   oldest 3 articles as unread as well as the newest 3.
>7) Exit group
>8) slrn should show that there are 6 unread articles for the group.
>9) Exit slrn
>10) restart slrn
>11) enter group used above.  You should see those 6 articles.

This isn't quite equivalent.  Here's a modified version, which does make
the bug reproducible for me:
 
1) run slrn.  
2) Select a high volume newsgroup, e.g., comp.lang.c.  There should be
   several thousand articles here.
3) Enter the newsgroup via `ESC 1 RETURN RETURN'.  This will cause slrn to
   load all the headers for the group.
4) Turn off sorting (ESC s and select NONE).  The headers will be arranged
   in the order in which the server received them-- from oldest to newest.
5) press `c' to mark all articles as read.
6) Now unmark as read the first 3 and the last 100.  In other words, mark the
   oldest 3 articles as unread as well as the newest 100.
7) Exit group
8) slrn should show that there are 103 unread articles for the group.
9) Exit slrn
10) restart slrn
11) Wait about 10-15 minutes to allow new postings to come in for the target
    group (you can read other groups, but don't enter the target group yet)
12) enter group used above.  The 3 oldest articles in the group will not
    be listed.
13) press 'c' to mark all articles as read
14) Exit group
15) Immediately re-enter the group
16) The 3 oldest articles will now be listed (along with any new articles),
    even though they were not listed in step 12 above

The important differences are the number of recent articles marked unread
in step 6 and the wait time in step 11.  Basically, you need to have about
100 newer articles in addition to the old articles...I stopped testing to
find out what the lower bound on this number is, but 100 appears to work
reliably (I have no idea why this makes a difference, but it does).

You then also need to hold off on selecting the group until new articles
have arrived which slrn doesn't know about--that's the reason for the 10-15
minute wait in step 11.  It may actually be longer or shorter, depending
on the group...10-15 minutes usually worked with comp.lang.c, but with
misc.jobs.offered it usually took just a minute or two.

This might seem like a very specific set of circumstances but it's actually
quite common.  I'll often save some old set of key articles for threads I'm
following, then the next day I'll run slrn and there'll be over 100 new
articles in those groups, but for various reasons I won't read those groups
for at least 10-15 minutes (because of meetings, phone calls, I'm reading
other groups first, or whatever).  When I do read them, the threads I was
following have temporarily disappeared.

--
John Caruso, Senior Technical Consultant
ADP Claims Solutions Group                 Phone: (800) 366-4237 x2102
2010 Crow Canyon Place                     FAX  : (510) 866-4839
San Ramon, CA  94583 (USA)                 Email: jcaruso@sr.csg.com


Technical Details
Message-ID: <slrn4ofgub.80j.jcaruso@raptor.sr.csg.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
References: <slrn4nfogg.2npg.gostl@argos.argoscomp.com> <slrn4ng5hf.nmb.davis@wiwaxia.mit.edu> <4lgaeu$nia@hpindda.cup.hp.com> <slrn44nq7iq.cpt.hkantola@vesuri.Helsinki.FI> <slrn4nqubf.1f7d.gostl@argos.argoscomp.com> <slrn4nralq.1m1.davis@wiwaxia.mit.edu> <slrn4o2d5t.t4.jcaruso@raptor.sr.csg.com> <slrn4o3f4n.dmj.davis@wiwaxia.mit.edu> <slrn4o9sl9.4tk.jcaruso@raptor.sr.csg.com> <slrn4ob6f6.dpg.davis@aluche.mit.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn4ofgub.80j.jcaruso@raptor.sr.csg.com>
Subject: Re: slrn bugs
Date: Wed, 01 May 1996 00:00:00 +0000
From: jcaruso@sr.csg.com (John Caruso)
References: <slrn4nfogg.2npg.gostl@argos.argoscomp.com> <slrn4ng5hf.nmb.davis@wiwaxia.mit.edu> <4lgaeu$nia@hpindda.cup.hp.com> <slrn44nq7iq.cpt.hkantola@vesuri.Helsinki.FI> <slrn4nqubf.1f7d.gostl@argos.argoscomp.com> <slrn4nralq.1m1.davis@wiwaxia.mit.edu> <slrn4o2d5t.t4.jcaruso@raptor.sr.csg.com> <slrn4o3f4n.dmj.davis@wiwaxia.mit.edu> <slrn4o9sl9.4tk.jcaruso@raptor.sr.csg.com> <slrn4ob6f6.dpg.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
X-Deja-AN: 152468152
Organization: ADP Claims Solutions Group
Newsgroups: news.software.readers