Article View: news.software.nntp
Article #58993Re: INN generating list of articles
From: Erik Hensema
Date: Tue, 28 May 2002 08:47
Date: Tue, 28 May 2002 08:47
51 lines
2626 bytes
2626 bytes
Remco Blaakmeer (remco@remco.hn.org) wrote:
> On Mon, 27 May 2002 21:59:55 GMT, "davidc" <davidc@hotpop[d.o.t]com> wrote:
>> I'm trying to setup rpost but it requires a list of the paths to articles.
>> My newsfeeds file contains this:
>>
>> winbox/winbox\
>> :*,!snipped.*/!snipped\
>> :Tf,Wnm:
>>
>> Which is nicely appending to /var/spool/news/outgoing/winbox but in this
>> form:
>>
>> @05010000000C0000006E0000000000000000@ <acmafd.2hg.1@snipped.net>
>>
>> How can I get it to instead output a list of paths to articles so that rpost
>> can use it?
>
> You can't. Use a more recent version of rpost instead.
Only a week ago or so I downloaded the latest suck/rpost and they can't
handle spooltokens.
I'm currently using this script:
OUTGOING=$SPOOLDIR/outgoing/$SERVER
if [ ! -s $OUTGOING.new ] ; then
mv $OUTGOING $OUTGOING.new
$CTLINND flush $1 |log 2>&1
fi
while read token rest; do
$SM $token | $SCRIPT | $RPOST $1 $2 -M > $SUCKLOG 2>&1
if [ $? -ne 0 ] ; then
echo $token >> $OUTGOING.new.fail
GOT_ERROR=yes
fi
done < $OUTGOING.new
rm $OUTGOING.new
$SCRIPT is a sed-script to remove unwanted headers, I think you can figure
the rest out yourself relatively easily.
--
Erik Hensema (erik@hensema.net) ICQ# 8280101
Help me, I'm a prisoner in a Fortune cookie file!
Technical Details
Message-ID:
<slrnaf6h0u.1hr.spamtrap@dexter.hensema.xs4all.nl>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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!transit.news.xs4all.nl!news.nl.linux.org!humbolt.nl.linux.org!hensema.xs4all.nl!cc78409-a.hnglo1.ov.nl.home.com!not-for-mailReferences:
<acudpc.2j4.1@edeca.net> <acubs4$l35$2@remco3.remconet>Show Full Headers
Complete Article Headers
Message-ID: <slrnaf6h0u.1hr.spamtrap@dexter.hensema.xs4all.nl> Subject: Re: INN generating list of articles Date: Tue, 28 May 2002 08:47:26 +0000 From: Erik Hensema <spamtrap@use.reply-to> References: <acudpc.2j4.1@edeca.net> <acubs4$l35$2@remco3.remconet> 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!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!transit.news.xs4all.nl!news.nl.linux.org!humbolt.nl.linux.org!hensema.xs4all.nl!cc78409-a.hnglo1.ov.nl.home.com!not-for-mail Newsgroups: news.software.nntp Organization: Hensema Lines: 50 Reply-To: erik@hensema.net NNTP-Posting-Host: cc78409-a.hnglo1.ov.nl.home.com X-Trace: dexter.hensema.xs4all.nl 1022575646 4113 212.120.97.185 (28 May 2002 08:47:26 GMT) X-Complaints-To: news@hensema.xs4all.nl NNTP-Posting-Date: Tue, 28 May 2002 08:47:26 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux)