🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #80838

[slrn] Implementing a thread killer

#80838
From: J.B. Nicholson-Owens
Date: Tue, 26 Jun 2001 12:08
59 lines
3978 bytes
I'm working on a thread killing macro.  The idea is you position the cursor
on some article and press a key.  Every article in that thread (which I'll
call the "offensive" thread) is instantly killed now and forever.  I think
there is a need for such functionality.  In time this could be extended to
offensive subjects and offensive authors.  I'm going for a correct and full
implementation which requires maintaining a list of offending message-IDs.

I can (mostly) implement this in two ways:

  (A) Have the macro keep a file of offending message-IDs and go over the
      article list finding child articles (adding them to the offensive
      list) and somehow killing them.

  (B) Add offending message-ID entries to a scorefile so slrn will do the
      killing.  I prefer this plan because so much is already done for me.

There are problems with both plans:

In plan A, it's not clear how a macro would efficiently kill an article.
Setting the score of an article to the kill score doesn't kill the article.

Plan A's offending message-ID list would grow without bound (which scales
poorly) and I'd have to reinvent the wheel to handle timed entries (i.e.,
kill this thread for 30 days).  Personally, I have no use for timed entries,
but I understand others would want it.  This suggests using the score engine
slrn already has (which, in combination with cleanscore, could do timed
entries and keep the scorefile to a reasonable size).

Plan B, the scorefile approach, requires knowing which article(s) are being
killed.  The message-IDs of these articles need to be added to the scorefile
so their descendant articles can be killed too.  How can a macro get the
message-IDs of the articles killed by a *particular* scorefile or scoring
operation?  To implement this properly, I'll need to distinguish between
scoring for this macro and all other scoring.  Scoring with a particular
value will not work because there's no way to guarantee that score won't be
used anywhere else.

Plan B could require scoring a group more than once (which could scale
poorly).  If adding offending message-IDs were done iteratively re-scoring
scales the worst.  It is advantageous to add all offending message-IDs to
the scorefile and score (at most) twice--once using whatever the extant
scorefile catches and a second pass to catch child articles not killed on
the first pass.  If no message-IDs are to be added, all the killing can be
done in one pass.

Thinking of a worst-case scenario where a bunch of AOL[1] posters are
posting followups to each other, each generating articles linked by one
message-ID in the References: header, it's easy to see the macro would be
best off exploiting some hierarchically arranged list of message-IDs in RAM.
Does such a thing exist in slrn already or was such a thing planned?  I'm
guessing something like this is built every time one enters article mode.

Comments?


[1] This is not a derogatory reference.  It is widely known that AOL's
    newsreader is (or was) broken.  Following up generated an overly terse
    References: header containing only the parent article's message-ID.
Technical Details
Message-ID: <slrn9jgumv.fog.jbn@forestfield.org>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <slrn9jgumv.fog.jbn@forestfield.org>
Subject: [slrn] Implementing a thread killer
Date: Tue, 26 Jun 2001 12:08:23 +0000
From: jbn@forestfield.org (J.B. Nicholson-Owens)
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!forestfield.ORG!not-for-mail
Newsgroups: news.software.readers
Organization: Forest Field OmniMedia
Lines: 58
NNTP-Posting-Host: forestfield.org (208.216.67.173)
X-Trace: fu-berlin.de 993557303 13142887 208.216.67.173 (16 [35848])
User-Agent: slrn/0.9.7.1 (Unix)