🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #47778

Re: Are there any tips on sucking from multiple newsfeeds in INN

#47778
From: Simon Lyall
Date: Wed, 09 Aug 2000 00:00
43 lines
2239 bytes
Jim Turnbull <Jim.Turnbull@nospam.mfs.misys.co.uk> wrote:
> I'm after some tips on sucking news from multiple newsfeeds, e.g.

If you start getting direct sucking feeds from these sites make sure you
keep an eye on them. They tend to do silly things like change the path
without warning and then complain when you start sending them everything.

Here is my script (for suck-4.2.3):

#!/bin/bash
# 
# Normal MODE
FIXED="-s -hl news.ihug.co.nz -bp -dt /home/suck -dd /home/suck -HF /var/news/etc/history -c "
RPOSTOPS="-s -p /var/news/spool/articles/ -d -f /home/suck/quick-filter.sh \$\$o=/var/tmp/FILTERED_MSG \$\$i /var/tmp/FILTERED_MSG "
# 
# Debug Mode
# FIXED=" -hl news.ihug.co.nz -bp -dt /home/suck -dd /home/suck -HF /var/news/etc/history -c "
# RPOSTOPS=" -p /var/news/spool/articles/ -d -f /home/suck/quick-filter.sh \$\$o=/var/tmp/FILTERED_MSG \$\$i /var/tmp/FILTERED_MSG "


SITE=3dfx
REMOTE=news.3dfx.com
ACTIVE=/home/suck/active.3dfx
grep "^3dfx." /usr/news/etc/active > $ACTIVE
/usr/local/bin/suck $REMOTE $FIXED -p $SITE -AL $ACTIVE -i -3 
/usr/local/bin/rpost $REMOTE -d -b /var/news/spool/out.going/$SITE $RPOSTOPS
        

and so on. The quick-filter.sh is.

news:/home/suck# more quick-filter.sh 
#!/bin/sh
# sed -e "/^NNTP-Posting-Host/d" $1 > $2
sed -e "/^NNTP-Posting-Host/d" $1 | sed -e "/^Xref/d" > $2



-- 
Simon Lyall.           |    Newsmaster   |  Work: simon.lyall@ihug.co.nz
Network/System Admin.  |                 |  Home: simon@darkmere.gen.nz
ihug, Auckland, NZ     |   Asst Doorman  |  Web: http://www.darkmere.gen.nz

Technical Details
Message-ID: <8mr358$qku$1@news.ihug.co.nz>
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: <8mp54e$8bu$1@hermes.mfs.misys.co.uk>

Show Full Headers
Complete Article Headers
Message-ID: <8mr358$qku$1@news.ihug.co.nz>
Subject: Re: Are there any tips on sucking from multiple newsfeeds in INN
Date: Wed, 09 Aug 2000 00:00:00 +0000
From: Simon Lyall <simon.lyall@ihug.co.nz>
References: <8mp54e$8bu$1@hermes.mfs.misys.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: 656255560
Organization: The Internet Group Ltd
User-Agent: tin/pre-1.4-980226 (UNIX) (Linux/2.0.36 (i686))
Newsgroups: news.software.nntp