🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #36091

Re: Doing a "suck" newsfeed using the suck package

#36091
From: Gavin McCord
Date: Mon, 22 Mar 1999 00:00
65 lines
2883 bytes
root@mauve.demon.co.uk wrote:

> Woodrow Sawyer <woodrows@birdsong.sbay.com> wrote:
> : OK, so I'm a clueless newbee. Just shoot me.
>
> : I need to do a sucking newsfeed, errrr, pull a newsfeed.
> : Not a full feed, but a few hundred groups, a few meg per day.
> : I am running Debian 1.3.1 with CNews. I have NNTP that runs.
>
> : I installed the Suck package from the Debian CD.
> : Now what?
> : The only documentation I could find is the man page.
> : Not much help there. I dont seem to be able to connect
> : what the author intended in the man page with what
>
> It's something like:
> suck news.server --active --batch_rnews batchfile
> Which will read news.server's groups, based on your active file, and
> put it in a format you can feed into rnews.

Here's a little script I use:

#!/bin/sh
su news -c 'SM=/home/usenet; \
suck news.demon.co.uk -hl localhost \
-dd $SM/var -dm $SM/articles -dt $SM/tmp \
-HF /var/news/etc/history -bp -c'

The flags mean

-hl  --  The localhost
-dd --  Dir where the sucknewsrc file is (see below)
-dm--  Dir where articles are stored before sending to INN server
-dt --   Other temporary files
-HF--  Where the history file is located
-bp --  Command to batch up news articles and post to INN server
-c -- clean up i.e. update sucknewsrc file

NB: dd and dm dirs must be different or the sucknewsrc file will be
deleted along with the articles when posting to INN server.

sucknewsrc:
This file has the following format

newsgroup article-number max-articles
eg

news.software.nntp 45454 100

The second field can also be a negative number, if
you don't know the current article number, eg

news.software.nntp -50 100

where the newest 50 messages are downloaded.
The 3rd field simply gives a maximum to the number of messages
that can be downloaded at one time - it's optional.

This isnt exhaustive - look at the man pages again for
more details.

Hope this helps. BTW, I'm using suck 4.0.


Technical Details
Message-ID: <36F66DAB.1DA57F4@coby.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <36660CDA.28152172@birdsong.sbay.com> <922027434.16962.0.nnrp-04.9e98d142@news.demon.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <36F66DAB.1DA57F4@coby.demon.co.uk>
Subject: Re: Doing a "suck" newsfeed using the suck package
Date: Mon, 22 Mar 1999 00:00:00 +0000
From: Gavin McCord <gav@coby.demon.co.uk>
References: <36660CDA.28152172@birdsong.sbay.com> <922027434.16962.0.nnrp-04.9e98d142@news.demon.co.uk>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 457637943
Content-Transfer-Encoding: 7bit
X-NNTP-Posting-Host: coby.demon.co.uk:212.229.71.50
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: abuse@demon.net
X-Trace: news.demon.co.uk 922125642 nnrp-07:26965 NO-IDENT coby.demon.co.uk:212.229.71.50
Organization: Home
Mime-Version: 1.0
Newsgroups: news.software.nntp