🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #150138

Re: Want file with list of headers

#150138
From: Tom B.
Date: Tue, 15 Jun 2004 23:22
32 lines
2046 bytes
SLRNer wrote in news.software.readers ...

> I would like to download a list of subject headers
> of messages on a given newsgroup, starting with a given
> message number.
> 
> A command that would purport to do that, using lynx, is:
> 
> #!/bin/sh
> lynx -dump news://NNTPSERVER/alt.whatever/290850-300000 > what.subj
> 
> This should write out the messages starting with 290850,
> and continue until it runs out (before 300000).
> 
> Instead, it only returns the last 30.  So if 290900 is
> the last message, it returns headers for 290870-290900.
> 
> I don't see where to change this in the lynx documentation.
> 
> The problem is that I wish to do this in a script, and the lynx
> command was designed to be run interactively.  It prompts
> to show the earlier messages it left out.

Use perl and the News::NNTPClient module

It makes this kind of stuff easy (if you know a little perl)

-- 
Tom B.   * * * Gravity Web Pages  * * *
http://lightning.prohosting.com/~tbates/gravity/
http://gravity.tbates.org/
http://mpgravity.sourceforge.net/
Technical Details
Message-ID: <MPG.1b394eda9c65d5799897ef@news.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!not-for-mail
References: <4df0a8701d481f8eb8e564be70eeafb6@news.teranews.com>

Show Full Headers
Complete Article Headers
Message-ID: <MPG.1b394eda9c65d5799897ef@news.individual.net>
Subject: Re: Want file with list of headers
Date: Tue, 15 Jun 2004 19:22:54 -0400
From: Tom B. <nfn03862@naples.net>
References: <4df0a8701d481f8eb8e564be70eeafb6@news.teranews.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.20140922.mbox.gz!number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Lines: 32
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de HW2D1fft4zZKeBEjfmwpPgiYYsaAHFuUkpBL8VbRCKCaoc6iA=
User-Agent: MicroPlanet-Gravity/2.70.2067