🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #65317

Re: XNews: Question to Luu about catchup command

#65317
From: Murray Peterson
Date: Wed, 06 Sep 2000 08:52
80 lines
4177 bytes
luutran@geocities_.com.invalid (Luu Tran) wrote:

>mwp@home.com.invalid (Murray Peterson) wrote in 
><8FA49154Ffarkle@24.64.2.57>:
>
>>Assume I do an xover on alt.alt and get this returned:
>>         group alt.alt
>>         211 4 1 7 alt.alt
>>
>>xover on this group returns articles 1, 3, and 5.
>
>>If I do a "mark all read" and close the window, my newsrc reads:
>>         1,3,5
>>
>
>That looks about right.
>
>
>>
>>Now, if I do a "catchup", my newsrc gets set to:
>>         1-7
>>If I do a "catchup and kill XPOSTS", my newsrc gets set to:
>>         1-5
>
>>The manual states that "Catchup and Kill XPost: this is
>>equivalent to issuing a mark all as read command then closing
>>window". 
>
>Okay, that's wrong.  It marks all read AND sets read count to
>1-<number of highest article fetched>, ie, does a catchup.  Note
>that this is not the same as 1-<high count as returned by GROUP
>command>, since you may have interrupted the XOVER operation, in
>which case doing a catchup that way will catch a lot of headers
>you actually haven't seen. 
>
>Now I'm not sure why you get a 1-7 when you do a catchup and 1-5
>w/ kill xpost.  Maybe you ran the tests at different times and
>there were an article 7 that got cancelled.

Actually, there are a few servers that seem to return different 
ranges from the GROUP command and the XOVER command.  The example I 
showed you was actually correct: GROUP returned 1-7, and XOVER 
returned articles only up to 5, even when not interrupted.  If I do a 
"catchup and kill Xpost", then the read count of 1-<number of highest 
article fetched" becomes 1-5, and the groups window shows 2 messages 
unread.  Anyway, that's a server issue, not an XNews problem.  You 
might remember this when someone complains about unread messages that 
they can't read -- their server's GROUP command is lying to XNews.

OK, let me see if I have this correct now:

"catchup" command:
    	sets read count to 1-<highest article returned by GROUP>

"catchup and kill Xpost" command:
    	sets read count to 1-<highest article returned by XOVER>

"mark read"
    	sets read on a per-article basis.

That seems to match with what my experiments showed, and is fine.  
You might want to update that sentence in you manual which states 
otherwise.

Might I make a suggestion for one of your internal algorithms?  When 
you are doing the XOVER command to read headers, I have found it 
faster (usually) to do a single XOVER command which spans all of the 
group's unread "gaps", and then go through the list and delete the 
already read headers.  It is almost always faster than doing an XOVER 
for each individual "gap" in the group.  I won't notice the 
difference, but anyone using XNews as an offline reader, or who 
"keeps" a lot of old messages will probably thank you.  It takes a 
long time to execute each one of multiple XOVER commands, usually 
longer than just downloading all the headers at one go.

-- 
Murray Peterson
Email: murray_peterson@home.com (remove underscore)
URL:   http://www.members.home.net/murraypeterson
Technical Details
Message-ID: <8FA7138AFfarkle@24.64.2.57>
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!supernews.google.com!sn-xit-02!sn-east!sn-xit-uk!supernews.com!193.162.153.122.MISMATCH!news.tele.dk!204.94.211.44!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ab.home.com.POSTED!not-for-mail
References: <8FA49154Ffarkle@24.64.2.57> <8FA6E2EE2luutrangeocities@209.30.0.14>

Show Full Headers
Complete Article Headers
Message-ID: <8FA7138AFfarkle@24.64.2.57>
Subject: Re: XNews: Question to Luu about catchup command
Date: Wed, 06 Sep 2000 08:52:29 GMT
From: mwp@home.com.invalid (Murray Peterson)
References: <8FA49154Ffarkle@24.64.2.57> <8FA6E2EE2luutrangeocities@209.30.0.14>
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!supernews.google.com!sn-xit-02!sn-east!sn-xit-uk!supernews.com!193.162.153.122.MISMATCH!news.tele.dk!204.94.211.44!enews.sgi.com!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.ab.home.com.POSTED!not-for-mail
Newsgroups: news.software.readers
User-Agent: Xnews/03.08.28
Lines: 79
NNTP-Posting-Host: 24.64.52.234
X-Complaints-To: abuse@home.net
X-Trace: news1.rdc1.ab.home.com 968230349 24.64.52.234 (Wed, 06 Sep 2000 01:52:29 PDT)
NNTP-Posting-Date: Wed, 06 Sep 2000 01:52:29 PDT
Organization: Excite@Home - The Leader in Broadband