Article View: news.software.nntp
Article #49842Re: home INN server
From: Ulf Kister
Date: Sun, 14 Jan 2001 13:39
Date: Sun, 14 Jan 2001 13:39
75 lines
3284 bytes
3284 bytes
Hi,
in case you decide to use suck you should be aware that the current
distribution does *not* cope with the outgoing/<site> file format the
inn versions 2.3.* produce when it comes to posting with rpost.
It took me a while to understand this; a little script might be
useful (please note that this is *my* homebrew; tested *only* with the
tradspool storage format):
##### snip #####
#!/bin/sh
#
# massage.outgoing
#
# little script to rewrite the outgoing files
# innd writes the articles tokens (such as
# "@0500000000070000000F0000000000000000@")
# into the outgoing files.
#
# This heavily confuses rpost; therefore we pass
# the tokens to the storage manager "sm" (man 8 sm)
# to write out the physical paths of the outbound
# articles instead.
#
# The massaged outgoing file maythen be passed to
# rpost as batchfile.
#
# Also note, that only the token should find it's way
# into the outgoing file - therefore set the
# respective line in the newsfeeds file like
# :Tf,Wn:
OUTBOUND=`/usr/local/news/bin/innconfval | grep out`
echo -n "massage.outgoing ---> throttling innd server: "
ctlinnd throttle massage
for FILE in `ls ${OUTBOUND}`; do
echo "massage.outgoing ---> processing file outgoing/${FILE}"
OUTFILE=${OUTBOUND}/${FILE}
PROCESSED=/tmp/${FILE}'.p'
UNPROCESSED=/tmp/${FILE}'.u'
grep "/" ${OUTFILE} > ${PROCESSED}
grep "^@" ${OUTFILE} > ${UNPROCESSED}
if [ ! -s ${UNPROCESSED} ]; then
echo "massage.outgoing ---> nothing to rewrite in outgoing/${FILE}
else
echo "massage.outgoing ---> rewriting outgoing/${FILE}"
for ARTICLE in `cat ${UNPROCESSED}`; do
ARTICLEPATH=`sm -i ${ARTICLE} | sed "s/: /\//g"`
echo ${ARTICLEPATH} >> ${PROCESSED}
echo " ${ARTICLE} ---> ${ARTICLEPATH}"
done
cp ${PROCESSED} ${OUTFILE}
rm ${PROCESSED} ${UNPROCESSED}
echo "massage.outgoing ---> ${FILE} processed sucessfully"
fi
done
echo -n "massage.outgoing ---> unthrottling innd server: "
ctlinnd go massage
##### snap #####
good luck,
Ulf
Technical Details
Message-ID:
<87ae8up81x.fsf@harry.my.net>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!nntp-relay.ihug.net!ihug.co.nz!newsfeed.germany.net!newscore.gigabell.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mailReferences:
<Ekf86.170607$MA1.5490279@afrodite.telenet-ops.be> <ylely6za1t.fsf@windlord.stanford.edu>Show Full Headers
Complete Article Headers
Message-ID: <87ae8up81x.fsf@harry.my.net> Subject: Re: home INN server Date: Sun, 14 Jan 2001 13:39:06 +0000 From: Ulf Kister <ulf.kister@t-online.de> References: <Ekf86.170607$MA1.5490279@afrodite.telenet-ops.be> <ylely6za1t.fsf@windlord.stanford.edu> 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!nntp-relay.ihug.net!ihug.co.nz!newsfeed.germany.net!newscore.gigabell.net!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail Newsgroups: news.software.nntp Organization: underground enterprise Lines: 74 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.t-online.com 979486315 03 21902 DtXmO-VS3A3SI 010114 15:31:55 X-Complaints-To: abuse@t-online.com X-Sender: 320020256018-0001@t-dialin.net User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Channel Islands)