🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #162581

Re: [slrn] Auto-prune threads started by trolls. A working script

#162581
From: W. Citoan
Date: Sun, 13 Feb 2005 14:44
48 lines
3228 bytes
Walter Dnes (delete the 'z' to get my real address) wrote:
>  
>  It woiks!!!  Under 2 minutes for the revised script to sail through
>  7000+ articles.  I cd to the spooldir of the group in question and
>  execute...

Great!  Even for the specs of your computer, that timing is more like
what I would expect (my old computer was pretty close to yours).

>    Notes;
>    - You need to run this script if slrnpull (or leafnode, or whatever)
>      has pulled any new articles since the last time you ran it.

slrnpull uses a sequential numbering scheme for naming the files in the
newsspool.  If you want to get fancier, you could store the last file
processed each time and only start from there next time. 
  
>    - This script only takes care of followups to the troll and all
>      subthreads from there on.  To block the troll's post that starts the
>      (sub)thread you still need a regular entry in your scorefile.

If you are using the same score file for slrnpull as slrn (recommended
as there's no reason to download files you want killed) be sure not to
score the troll below your kill level.  You want a score that causes
slrn not to show his posts but allows slrnpull to download it.  If you
don't download it, then your script won't work.

   Note:  I figure you know this.  I just added it for anyone else who
   might stumble across this later.
  
>    - When an article by a troll is expired, existing replies remain
>      "read".  If someone (who isn't killfiled) replies after the troll's
>      post expires from your local spool, that reply will not be filtered.
>      That is not going to happen very often.

Depends upon the size of your local newsspool.  If you process only new
articles each time (see above), your script would need to save the msg
ids from each run instead of recreating the killfile each time.  This
would allow you to keep them around after they have expired.

You would probably want to add expire dates and cleanscore them once in
awhile as if you simply kept adding and never deleted, scoring would
start bogging down.

- W. Citoan
-- 
Imagination is more important than knowledge.
-- Albert Einstein
Technical Details
Message-ID: <slrnd0upv0.b8.wcitoan@wcitoan-via.supernews.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.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news.airnews.net!cabal13.airnews.net!cabal11.airnews.net!sn-xit-03!sn-xit-08!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <37738kF5ahg8rU1@individual.net> <slrnd0spq2.3b8.wcitoan@wcitoan-via.supernews.com> <378cojF58fkusU1@individual.net>

Show Full Headers
Complete Article Headers
Message-ID: <slrnd0upv0.b8.wcitoan@wcitoan-via.supernews.com>
Subject: Re: [slrn] Auto-prune threads started by trolls. A working script
Date: Sun, 13 Feb 2005 14:44:58 -0000
From: "W. Citoan" <wcitoan@NOSPAM-yahoo.com>
References: <37738kF5ahg8rU1@individual.net> <slrnd0spq2.3b8.wcitoan@wcitoan-via.supernews.com> <378cojF58fkusU1@individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.ams.giganews.com!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.moat.net!news.airnews.net!cabal13.airnews.net!cabal11.airnews.net!sn-xit-03!sn-xit-08!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
Newsgroups: news.software.readers
Organization: Posted via Supernews, http://www.supernews.com
User-Agent: slrn/0.9.7.4 (Win32)
X-Complaints-To: abuse@supernews.com
Lines: 48