🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.misc
Article #636

Perl based killfile script for netscape 3.#

#636
From: Graeme Rae
Date: Thu, 11 Sep 1997 00:00
89 lines
3635 bytes

I just wrote myself a little script to do automatic killing of
news articles in netscape. You can download the tarred, gzipped file
from

ftp://www.marine.fit.edu/pub/killnews/killnews-1.0.tar.gz


  Heres the readme:


USAGE  killnews -k killfile [-n NNTPSERVER] [-d debuglevel]
 
                VERSION 1.0 SEPTEMBER 1997
                The latest version can be found at
                ftp://www.marine.fit.edu/pub/killnews/killnews.tar.gz
                Suggestions, improvements, comments can be sent to
                REMgraeme@marine.fit.eduOVE_TO_EMAIL
PURPOSE:
        To weed out all the sh*t that appears in newsgroups from people
trying to sell me stuff or convince me that some woman somewhere will
get off if I call her (for free of course).  Amazingly this program
actually works!! I just ran a typical scan on my local newserver -  it
killed 374 out of a possible 1543  articles with very few friendly fire
deaths.
 
 

OPTIONS:
-k      -k killfile
REQUIRED single line, comma delineated text file containing kill phrases

-n      -n NNTPSERVER
NNTPSERVER to check.  defaults to $NNTPSERVER if not set

-d      -d debuglevel
Actual value of debuglevel means nothing at the moment
but will do in future versions.  If its set killnews prints
out all sorts of stuff about what its doing.  If not set
it only lists limited info.



FUNCTION:

a)  Opens the correct .newsrcfile
b)  Retrieves the list of unread articles from the host
c)  Checks for 'bad' keywords in the subject lines
d)  Adds the killed articles to the .newsrcfile
e)  You then open the newshost in netscape

NOTES:
a)it is very clunky - especially the first pass at a host around
You basically need to start with a fully caught up set of groups.
Or if its a whole new group you've never read before, open the
        group in netscape, make the first (oldest) article as read,
        close the group, close the newshost, run killnews and then
        read the group again.
        b)It works with Netscape 3.# . format newsrc files 
        c)it often screws up the numbers of read/unread articles in
netscape
 
        Possible improvements:
                Live File (mark as unread on a second pass)
                Improved first time at a newshost 
                Ignoring of unsubscribed groups
                Error trapping is poor
                Kill file is not case sensitive
                better debug/verbose/quiet options
 
INSTALLATION:
        You need perl5 (I think) getopts.pl in a searched library and
that's it.
 
KILLFILE Format
        A string of comma separated words or phrases, spaces are OK.
eg.
SEX,sex,!,\*,Free,free,FREE,htm,html,LIVE,Make money
 

--
REMgraeme@marine.fit.eduOVE (Dr. Graeme Rae), Division of Marine & 
 Environmental Systems, Florida Institute of Technology, 
 (407) 768-8000 x 7244. http://www.fit.edu/dmes/people/rae.html
 "May your joys be as deep as the ocean,     
   and your troubles as light as its foam."

Technical Details
Message-ID: <34182ADA.F0@marine_REMOVE.fit_TO.edu_EMAIL>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.misc.mbox.zip!not-for-mail

Show Full Headers
Complete Article Headers
Message-ID: <34182ADA.F0@marine_REMOVE.fit_TO.edu_EMAIL>
Subject: Perl based killfile script for netscape 3.#
Date: Thu, 11 Sep 1997 00:00:00 +0000
From: Graeme Rae <REMOVEgraeme@marine_REMOVE.fit_TO.edu_EMAIL>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.misc.mbox.zip!not-for-mail
X-Deja-AN: 271762066
Organization: Florida Tech
X-pugleaf-debug: badGroups=1 valid=3
Newsgroups: news.software.readers,news.admin.netnews.software.nntp-abuse.usenet,news.software.misc