🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Brad Knowles Wed, 16 Jun 1999 00:00
Master List of Newsgroup Hierarchies...
#38077
Author: Brad Knowles
Date: Wed, 16 Jun 1999 00:00
46 lines
2887 bytes
Folks,

    Out of curiosity, has anyone given any consideration to hacking
together a script to take the "Master List of Newsgroup Hierarchies" via
<http://www.magmacom.com/~leisen/mlnh/index.html>, slice it up into "known
valid" and "known invalid" parts, then automatically remove all those
local hierarchies which are known to be invalid, and then optionally merge
or sync those hierarchies which are known to be valid (potentially
removing a large number of newsgroups that are not in "known valid"
hierarchies)?

    It would require some passes through your current active file, and if
you're going to add any new hierarchies, you'd need tp make some passes
through the active file of some other site (e.g., the ISC) to pick up
actual newsgroup names to then add.  Unfortunately, not everyone has "grep
-f", and even for those of us that do, this can rapidly build up some
patterns that are too large for grep to deal with.


    As a point of information, there are 564 known valid hierarchies, and
21 known invalid hierarchies.  On our news server, if we were to remove
all the "known invalid" hierarchies, that would affect some 726
newsgroups.

    If we were to remove all the hierarchies which are not known to be
valid, local, or pulled down with "suck", this would result in 3433
newsgroups being eliminated.  If we were to add all the hierarchies which
we do not have locally (189), that would be 204 additional newsgroups out
of the ISC active file.


    I've hacked together a quick-n-dirty little tool to effectively do a
line-by-line equivalent of "grep -f" through an active file, and I may
manually turn this output of this into something to feed into a script to
call ctlinnd to either delete or create the affected newsgroups, or
perhaps have it feed into actsync.  If it would be of value, I might make
that script a bit cleaner and perhaps more appropriate to be periodically
run, and then post it here or contribute it to INN.

    What do you think?

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Re: Master List of Newsgroup Hierarchies...
#38085
Author: bill davidsen
Date: Wed, 16 Jun 1999 00:00
28 lines
2018 bytes
In article <brad-1606991725360001@brad.techos.skynet.be>,
Brad Knowles <brad@shub-internet.org> wrote:

|     I've hacked together a quick-n-dirty little tool to effectively do a
| line-by-line equivalent of "grep -f" through an active file, and I may
| manually turn this output of this into something to feed into a script to
| call ctlinnd to either delete or create the affected newsgroups, or
| perhaps have it feed into actsync.  If it would be of value, I might make
| that script a bit cleaner and perhaps more appropriate to be periodically
| run, and then post it here or contribute it to INN.
| 
|     What do you think?

I think this would be useful! However, it's the type of thing you may go
months without revisiting, so hopefully there will be a small "remind me
what I understood when I set this up" doc file ;-)

If performance or portability gets bad, you could probably do this in
perl using a hashed associative array on the leading elements of the
hierarchies, which might help in these areas.

-- 
bill davidsen <davidsen@tmr.com>  CTO, TMR Associates, Inc
  The Internet is not the fountain of youth, but some days it feels like
the fountain of immaturity.


Re: Master List of Newsgroup Hierarchies...
#38104
Author: Brad Knowles
Date: Thu, 17 Jun 1999 00:00
30 lines
2199 bytes
In article <7k98bg$kpq$1@newssvr03-int.news.prodigy.com>, davidsen@tmr.com
(bill davidsen) wrote:

> I think this would be useful! However, it's the type of thing you may go
> months without revisiting, so hopefully there will be a small "remind me
> what I understood when I set this up" doc file ;-)

    True enough.  I was thinking of potentially running it once a month,
but even then you might forget what you had done the month before or why.

> If performance or portability gets bad, you could probably do this in
> perl using a hashed associative array on the leading elements of the
> hierarchies, which might help in these areas.

    Oy.  I've been doing a lot of Perl hashes lately, and I've been
finding that they use up a *huge* amount of memory, and not all of our
servers have 1GB of RAM to play with.  I really want to find a better
solution to successfully tie them to a dbm file before I do too much more
in that arena.

    As it stands now, doing an iteration of "grep $line $filename" for
each and every line in the pattern file is sufficient, albeit quite slow
(especially if you're performing a negative lookup for newsgroups that are
not in the "known valid" hierarchy).

-- 
Brad Knowles <brad@shub-internet.org> <http://www.shub-internet.org/brad/>
    <http://wwwkeys.pgp.net:11371/pks/lookup?op=get&search=0xE38CCEF1>

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads