🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #35521

Re: newgroups lists

#35521
From: Greg Wooledge
Date: Sun, 27 Jul 1997 00:00
39 lines
1804 bytes
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:

==========================================================================
#!/usr/bin/perl

use Net::Telnet;
$news = new Net::Telnet();
$news->open (Host => "news", Port => 119, Timeout => 90);

$news->cmd (String => "", Prompt => '/^2[0-9][0-9] .*$/');	# wait
$news->print ("list");

# List will be preceded by 2nn response.
do {
	$line = $news->getline();
} until $line =~ /^2[0-9][0-9] .*$/;

# List will be terminated by line containing only a period.
do {
	$line = $news->getline(Timeout => 90);
	print $line;
} until $line eq ".\r\n";

$news->close;
==========================================================================

It's pretty primitive -- tweak to suit your needs.  Or pipe it through
sort, whatever you want. :-)
-- 
------------                  Greg Wooledge                  -------------
-------                   wooledge@kellnet.com                     -------
---              http://kellnet.com/wooledge/main.html                 ---

Technical Details
Message-ID: <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
References: <5re8d4$289@roxy.sfo.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn5tmmpd.8mt.wooledge@phoenix.local>
Subject: Re: newgroups lists
Date: Sun, 27 Jul 1997 00:00:00 +0000
From: wooledge@kellnet.com (Greg Wooledge)
References: <5re8d4$289@roxy.sfo.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.mbox.zip!not-for-mail
X-Deja-AN: 259436249
Organization: homo sapiens
Reply-To: wooledge@kellnet.com
Newsgroups: news.software.readers,news.groups