Article View: news.software.nntp
Article #36166Re: Example of Net::NNTP & xover?
From: Dan Foster
Date: Wed, 24 Mar 1999 00:00
Date: Wed, 24 Mar 1999 00:00
33 lines
2213 bytes
2213 bytes
In article <brad-2403991700280001@brad.techos.skynet.be>,
Brad Knowles <brad@shub-internet.org> wrote:
>
> I'm in the process of putting together another news debugging tool,
>and of course would prefer to make life easy for myself by using the
>Net::NNTP module. However, the man page for the xover command is not
>exactly crystal clear (in particular, how I would parse the "reference to
>an array which contains the overview fields for that message"), and there
>appears to be a great dearth of any useful posts on this subject that I
>can find over on DejaNews.
I haven't looked at that particular module in a while. I like/use
News::NNTPClient. For *that* one, it's as easy as:
$debug = 0;
$newsserver = "news.microsoft.com";
$newsport = 119;
$conn = new News::NNTPClient($newsserver, $newsport, $debug);
$stat = $conn->initialize;
$stat = $conn->mode_reader;
$overRange = $conn->group("alt.test");
@overviewRecords = $conn->xover($overRange);
Stuff like that. It's possible this is similiar for Net::NNTP's xover?
Don't remember where I got News::NNTPClient, but pretty sure off a CPAN site.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Foster
Systems Specialist, Frontier Internet Administration Team [East Coast]
Frontier GlobalCenter, Inc.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID:
<7db5p5$1e30$1@node17.cwnet.frontiernet.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.modules.mbox.zip!not-for-mailReferences:
<brad-2403991700280001@brad.techos.skynet.be>Show Full Headers
Complete Article Headers
Message-ID: <7db5p5$1e30$1@node17.cwnet.frontiernet.net> Subject: Re: Example of Net::NNTP & xover? Date: Wed, 24 Mar 1999 00:00:00 +0000 From: dsf@frontiernet.net (Dan Foster) References: <brad-2403991700280001@brad.techos.skynet.be> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.lang.perl.modules.mbox.zip!not-for-mail X-Deja-AN: 458454237 X-Complaints-To: abuse@frontiernet.net X-Trace: node17.cwnet.frontiernet.net 922294885 47200 209.130.129.70 (24 Mar 1999 17:01:25 GMT) Organization: Frontier GlobalCenter NNTP-Posting-Date: 24 Mar 1999 17:01:25 GMT Newsgroups: news.software.nntp,comp.lang.perl.modules