Article View: news.software.nntp
Article #83524Re: [INN] POST instead of IHAVE?
From: Edmund H. Ramm
Date: Wed, 13 Oct 2010 17:09
Date: Wed, 13 Oct 2010 17:09
60 lines
2904 bytes
2904 bytes
Bonjour Julien,
In <i900m5$6f9$1@news.trigofacile.com> =?ISO-8859-15?Q?Julien_=C9LIE?= <iulius@nom-de-mon-site.com.invalid> writes:
> [...]
> Patch to prevent that connection:
> [...]
>+ # No need to connect to the upstream server when there is no newsgroup
> [...]
the patch works fine, thank you. News don't get "pushed" to the
downstream server, though.
I worked around this problem using the usual NNTP newsfeed entry
and the -external to INN- postnews (administrative code omitted):
-----
#!/bin/bash
dest=news.xxxxxxx.com
outgoing=/var/spool/news/outgoing
pass=topsecret
postnews=/usr/bin/postnews
skip1="/usr/bin/tail -n +2" # get rid of "#! rnews"
sm=/var/lib/news/bin/sm
user=me.moi.et.I
wrk=${dest}.wrk
cd $outgoing
cp $dest $wrk
cp /dev/null $dest
if /usr/bin/fping $dest > /dev/null 2>&1
then
tokens=`/usr/bin/cut -f1 -d" " $wrk`
for token in $tokens
do
/bin/echo "sending: $token"
$sm -S $token | $skip1 | $postnews -v --user $user --pass $pass $dest
done
if [ $? -eq 0 ]
then
rm $wrk
else
/bin/echo "$0: could not send all articles to $dest"
/bin/echo "$0: handle $wrk manually"
fi
else
/bin/echo "$0: unable to reach $dest"
exit 1
fi
exit 0
-----
slt, Eddi ._._.
--
e-mail: dk3uz AT arrl DOT net | AMPRNET: dk3uz@db0hht.ampr.org
If replying to a Usenet article, please use above e-mail address.
Linux/m68k, the best U**x ever to hit an Atari!
Technical Details
Message-ID:
<i94p42$dmi$1@dk3uz.ampr.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.20141118.mbox.gz!num2.nntp.ams.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!news.alt.net!dk3uz!not-for-mailReferences:
<i834on$hg6$1@dk3uz.ampr.org> <i858pc$a9s$1@news.trigofacile.com> <i85q09$i4f$1@dk3uz.ampr.org> <i86rij$34j$1@news.trigofacile.com> <i8qtpl$g9i$1@dk3uz.ampr.org> <i8rtpv$iv1$1@news.trigofacile.com> <i8tebe$d42$1@dk3uz.ampr.org> <i900m5$6f9$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <i94p42$dmi$1@dk3uz.ampr.org> Subject: Re: [INN] POST instead of IHAVE? Date: Wed, 13 Oct 2010 17:09:23 +0000 From: ehramm@dk3uz.ampr.org (Edmund H. Ramm) References: <i834on$hg6$1@dk3uz.ampr.org> <i858pc$a9s$1@news.trigofacile.com> <i85q09$i4f$1@dk3uz.ampr.org> <i86rij$34j$1@news.trigofacile.com> <i8qtpl$g9i$1@dk3uz.ampr.org> <i8rtpv$iv1$1@news.trigofacile.com> <i8tebe$d42$1@dk3uz.ampr.org> <i900m5$6f9$1@news.trigofacile.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.20141118.mbox.gz!num2.nntp.ams.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!news.alt.net!dk3uz!not-for-mail Newsgroups: news.software.nntp Organization: Private Linux/68k site Lines: 60 Sender: ehramm@dk3uz.ampr.org NNTP-Posting-Host: dk3uz.ampr.org X-Trace: dk3uz.ampr.org 1286989763 14034 44.130.0.81 (13 Oct 2010 17:09:23 GMT) X-Complaints-To: usenet@dk3uz.ampr.org NNTP-Posting-Date: Wed, 13 Oct 2010 17:09:23 +0000 (UTC) X-No-Archive: yes X-No-HTML: yes User-Agent: nn/6.7.3