🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #60084

Re: Transfer news

#60084
From: Wolfgang Fritz
Date: Tue, 27 Aug 2002 15:44
61 lines
2869 bytes
Alexander Newald wrote:
> "Wolfgang Fritz" <wolfgang.fritz@datentechnik.com> schrieb im Newsbeitrag
> news:3D6B1A00.2080005@datentechnik.com...
> [about newsfeeds and own newsserver]
> 
> Thanks for your information. So I think I will use rpost as well. How do you
> manage to use rpost with cnfs spools?
> 
I am using tradspool, but the trick should be the same. You have to 
specify a filter for rpost to get the article text from the article 
token in the outgoing article list by using the storage manager 
interface sm (man sm).

my rpost call in get.news.innxmit is like this
${RPOST} ${REMOTE_HOST} -d -b ${OUTGOINGNEW} -f \$\$o=${OUTFILE} 
${SCRIPT} \$\$i ${OUTFILE}
with
${RPOST} = /usr/bin/rpost,
${REMOTE_HOST} the remote news server
${OUTGOINGNEW} the outgoing article list
${OUTFILE} a temporary file /tmp/tmp$$
${SCRIPT} = /var/spool/news/put.news (see below)

-------------- start of put.news -----------------------
#!/bin/sh

# this is just a simple script to use sed to strip off the
# headers that my ISP's newsfeed
# doesn't like.

if [ $# -ne 2 ]; then
	echo
	echo "Usage `basename $0` infile outfile <RETURN>"
	echo
	exit -1
fi

SEDCMD="/^NNTP-Posting-/d"
SEDCMD2="/^X-Trace/d"
SEDCMD3="/^X-Complaints/d"
SEDCMD4="/^Xref/d"
OUTFILE=$2

/usr/lib/news/bin/sm $1 | sed -e ${SEDCMD} ${TMPFILE} \ | sed -e 
${SEDCMD2} | sed -e ${SEDCMD3}  | sed -e ${SEDCMD4} > ${OUTFILE}
		
if [ $? -ne 0 ]; then
     echo "Error"
     exit -1
fi
--------- end of script ------------

Wolfgang


> Alexander Newald
> 
> 


Technical Details
Message-ID: <3D6B9E54.1020603@fritz38552.news.dfncis.de>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!p3e9c1542.dip.t-dialin.NET!not-for-mail
References: <akdb2s$1hlfch$1@ID-70636.news.dfncis.de> <3D6A53A6.4070007@fritz38552.news.dfncis.de> <ake1iv$1hqj9i$1@ID-70636.news.dfncis.de> <3D6B1A00.2080005@datentechnik.com> <akfs4o$1htcm7$1@ID-70636.news.dfncis.de>

Show Full Headers
Complete Article Headers
Message-ID: <3D6B9E54.1020603@fritz38552.news.dfncis.de>
Subject: Re: Transfer news
Date: Tue, 27 Aug 2002 17:44:20 +0200
From: Wolfgang Fritz <wolfgang.fritz@gmx.net>
References: <akdb2s$1hlfch$1@ID-70636.news.dfncis.de> <3D6A53A6.4070007@fritz38552.news.dfncis.de> <ake1iv$1hqj9i$1@ID-70636.news.dfncis.de> <3D6B1A00.2080005@datentechnik.com> <akfs4o$1htcm7$1@ID-70636.news.dfncis.de>
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!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!p3e9c1542.dip.t-dialin.NET!not-for-mail
Newsgroups: news.software.nntp
Organization: None
Lines: 60
NNTP-Posting-Host: p3e9c1542.dip.t-dialin.net (62.156.21.66)
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fu-berlin.de 1030463089 53220077 62.156.21.66 (16 [38552])
X-Orig-Path: gurke.wofritz.de!fritz38552.news.dfncis.de!not-for-mail
X-Accept-Language: en-us, en, de-de, de
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1a) Gecko/20020610