Article View: news.software.nntp
Article #50539Re: "pulling" news
From: Terrance Richard Boyes
Date: Sat, 10 Feb 2001 05:07
Date: Sat, 10 Feb 2001 05:07
49 lines
3474 bytes
3474 bytes
Noal McDonald <dharzhak@my-deja.com> wrote:
> tez@pierrot.co.uk (Terrance Richard Boyes) wrote:
>> Other than that it needs a couple of tweaks to the get.news.inn
>> script, like using the current standard INN dirs, and passing
>> the REMOTE_HOST.
> Thanks. I'll take a look at these, too.
Here's mine, though note I only use it for sucking, not posting.
First make the obvious change
REMOTE_HOST=${1:-news.pixi.com}
Then just above # download messages, I've also added
# see if we have AUTHINFO for this server
AUTHINFO=""
AUTHINFO_USER=`grep ${REMOTE_HOST} ${NEWSDIR}/etc/passwd.nntp | cut -d: -f2`
if [ "${AUTHINFO_USER}" != "" ] ; then
AUTHINFO_PASS=`grep ${REMOTE_HOST} ${NEWSDIR}/etc/passwd.nntp | cut -d: -f3`
AUTHINFO="-u -U ${AUTHINFO_USER} -P ${AUTHINFO_PASS}"
fi
Of course this means the addition of an entry in passwd.nntp
if authentication is needed, and only users in the news group
can use this script if it is needed.
And I've changed the call to suck,
${SUCK} ${REMOTE_HOST} -hl ${LOCAL_HOST} -HF ${NEWSDIR}/db/history
-dt ${TMPDIR} -dm ${MSGDIR} -dd ${BASEDIR} ${AUTHINFO}
-p .${REMOTE_HOST} @${BASEDIR}/suckrc.${REMOTE_HOST}
The last bit of which allows you to have multiple hosts, each with
their own sucknewsrc.host and suckrc.host (just in case you want
different options). eg I have a suckrc.news.cis.dfn.de which
contains -k -c -a -B -bp -G -sg. If not you can lose everything
from -p onwards.
Feel free to use/adapt/improve it.
--
<URL:http://www.pierrot.co.uk/> Team AMIGA
How long does it take a DEC field service engineer to change a lightbulb?
It depends on how many bad ones he brought with him.
Technical Details
Message-ID:
<20010210.050721.9E9801DE.p5aa@pierrot.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!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mailReferences:
<5jbc59.5s1.ln@colin.ursa.de> <20010204.184004.9E9801DE.Yoaa@pierrot.co.uk> <95lvjr$bq1$5@support.neth.hp.com> <20010206.193706.9E9801DE.6maa@pierrot.co.uk> <20010209.194442.9E9801DE.mqaa@pierrot.co.uk> <961lvh$l5b$1@nnrp1.deja.com>Show Full Headers
Complete Article Headers
Message-ID: <20010210.050721.9E9801DE.p5aa@pierrot.co.uk>
Subject: Re: "pulling" news
Date: Sat, 10 Feb 2001 05:07:21 +0000
From: tez@pierrot.co.uk (Terrance Richard Boyes)
References: <5jbc59.5s1.ln@colin.ursa.de> <20010204.184004.9E9801DE.Yoaa@pierrot.co.uk> <95lvjr$bq1$5@support.neth.hp.com> <20010206.193706.9E9801DE.6maa@pierrot.co.uk> <20010209.194442.9E9801DE.mqaa@pierrot.co.uk> <961lvh$l5b$1@nnrp1.deja.com>
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!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!mail2news.demon.co.uk!not-for-mail
Newsgroups: news.software.nntp
Organization: ECL.Net
X-Trace: mail2news.demon.co.uk 981781658 mail2news:12653 mail2news mail2news.demon.co.uk
X-Complaints-To: abuse@demon.net
X-Mail2News-Path: news.demon.net!tele-post-20.mail.demon.net!pierrot.demon.co.uk!pierrot.co.uk!tez@pierrot.co.uk
X-Lan-Trace: news.pierrot.lan 20010210.050721 news:p5aa IDENT tez@pierrot.demon.co.uk
User-Agent: tin/1.4.3-20000502 ("Marian") (AMIGA)
X-Cancel-Lock: TEZT:0ae183788f26bdb67285af3238cf6133 26ce29d9ac73f04dbabfc74eb38b718e
X-PGP-Keyfile: <URL:http://www.pierrot.co.uk/pgpauth/>
X-PGP-Fingerprint: 20 66 0F E8 85 64 9C 2C 6F 82 6F 19 6C 2F 6A 1D
X-PGP-Auth: pub 512/3A14C4B9 1999/04/22 Tez Boyes <tez@pierrot.co.uk> iQBVAwUBOoTMj0Xush46FMS5AQGxUQIAhIQoKmvjEnmphyf78KwM99HH/wHTCBU1 OvcLbOkV/RHM7Nqm3izz58iBx8x4ydnafOaIhByKnpycwmgSW0GQeg== =bIRx
X-NaMLServ: $VER: v0.9b <tez@pierrot.co.uk>
Lines: 48