🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #60545

[slrn] Marking from the cursor to the last article read

#60545
From: Dawn Owens-Nicholson
Date: Sat, 15 Apr 2000 00:00
34 lines
2661 bytes
Maciej Kalisiak wrote:
> I'd like to have "C" (or "c", doesn't matter) mark the messages at the
> cursor and *down*.  Since my headers are listed from most recent to oldest,
> I usually want to toss everything older than some message I have just seen.

So, you use sorting method #8 or #9.  This will require a macro or source
modification (I'd recommend the former because a macro can do this well).  I
can think of two ways to do this in a way that preserves the read status of
the articles above the cursor:

 (1) Reverse the sorting, reposition the cursor to the article where you
     started (if necessary), use the catchup intrinsic, reverse the
     sorting again, reposition the cursor to where you started (if
     necessary).  This will scale better than the second suggestion.  It
     will probably execute quickly on slow machines too.  This won't work
     with all sorting methods because they're not all reversible.

 (2) Write a loop to mark the remainder of the current thread and all
     subsequent threads read.  This will scale poorly.

If you don't care about preserving the read status of the articles above the
cursor, you could also mark the whole group read and mark up to the cursor
unread.  This is the fastest way to do the job.

If you want to get fancier you could implement more than one of these in the
same macro depending on your current sorting method.  Idea #2 will work
everywhere at the expense of speed.  Idea #1 only works for reversible
sorting methods (8 & 10 or 9 & 11).  The last idea works for all sorting
methods but since there are other better ways to do it, I wouldn't recommend
it unless you also want to mark all the other articles unread.

Happy newsreading!

Technical Details
Message-ID: <slrn8fhu7v.ct.bluemoon@ux6.cso.uiuc.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: <slrn8fh7rs.1h0.mac@localhost.localdomain> <slrn8fhpf6.ct.bluemoon@ux6.cso.uiuc.edu> <slrn8fhs43.3n1.mac@localhost.localdomain>

Show Full Headers
Complete Article Headers
Message-ID: <slrn8fhu7v.ct.bluemoon@ux6.cso.uiuc.edu>
Subject: [slrn] Marking from the cursor to the last article read
Date: Sat, 15 Apr 2000 00:00:00 +0000
From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson)
References: <slrn8fh7rs.1h0.mac@localhost.localdomain> <slrn8fhpf6.ct.bluemoon@ux6.cso.uiuc.edu> <slrn8fhs43.3n1.mac@localhost.localdomain>
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: 611670974
X-Complaints-To: abuse@uiuc.edu
X-Trace: vixen.cso.uiuc.edu 955840749 128.174.5.9 (Sat, 15 Apr 2000 18:19:09 CDT)
Organization: University of Illinois at Urbana-Champaign
User-Agent: slrn/0.9.6.2 (HP-UX)
NNTP-Posting-Date: Sat, 15 Apr 2000 18:19:09 CDT
Newsgroups: news.software.readers