🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #35544

Re: newgroups lists

#35544
From: lvirden
Date: Tue, 29 Jul 1997 00:00
37 lines
1675 bytes

According to Greg Wooledge <wooledge@kellnet.com>:
:On 26 Jul 1997 18:31:16 -0700, informix <informix@roxy.sfo.com> wrote:
:
:>	i want to get complete lists of all available usenet groups...
:
:I don't think that's strictly possible.  Maybe this would be helpful:

Actually, using this code , passing an NNTP news server as the first argument
should give you a list of the newsgroups in the news server's active file.

#!/ldata2/bin/perl -w
use strict;
use diagnostics;
use English;
use Net::NNTP;
my ($p_nh) = @ARGV;
my ($nh, $newsgroup, $ng);
$nh = Net::NNTP->new($p_nh);
if (!$nh) {
  die "$p_nh wasn't a valid newshost!"
}
$ng = $nh->active();
foreach $newsgroup (keys %$ng) {
  print "$newsgroup\n";
}
$nh->quit;


-- 
Larry W. Virden                 INET: lvirden@cas.org
<URL:http://www.teraform.com/%7Elvirden/> <*> O- "We are all Kosh."
Unless explicitly stated to the contrary, nothing in this posting should
be construed as representing my employer's opinions.

Technical Details
Message-ID: <5rkund$qdm$1@cas.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!not-for-mail
References: <5re8d4$289@roxy.sfo.com> <slrn5tmmpd.8mt.wooledge@phoenix.local>

Show Full Headers
Complete Article Headers
Message-ID: <5rkund$qdm$1@cas.org>
Subject: Re: newgroups lists
Date: Tue, 29 Jul 1997 00:00:00 +0000
From: lvirden@cas.org
References: <5re8d4$289@roxy.sfo.com> <slrn5tmmpd.8mt.wooledge@phoenix.local>
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: 260190130
Organization: Nedriv Software and Shoe Shiners, Uninc.
Reply-To: lvirden@cas.org
Newsgroups: news.software.readers,news.groups
Originator: lwv26@cas.org (Larry W. Virden)