🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
3 messages
3 total messages Started by Steve Mon, 05 Aug 2002 15:27
INN with Suck and RPost
#59848
Author: Steve
Date: Mon, 05 Aug 2002 15:27
35 lines
2641 bytes
Hello,

Apologies if my forthcoming words appear naive, I'm treading on new turf. 
:)

I've recently bought a Sun workstation as a training bench for learning 
Solaris and my first project has been to build myself a news server.  I 
opted for INN due to its availability and the fact the company I work for 
run it which is part of my goal for learning Solaris / Unix.  I managed 
to install INN with no prior Unix experience, which is a real tribute to 
the completeness of the installation manual.  Not sure who to 
congratulate but there's a pat on the back due there somewhere!  I'm sure 
my installation would leave a lot to be desired but hopefully I can 
refine it as part of my learning process.

As my server has no push feeds, I have also installed Suck.  This also 
went off without any real problems once I figured out the various 
configuration files required and how to use Cron.

The final step of my implementation was to install RPost so as to push 
local posts back to my ISP's news server.  At this point my progress came 
to a grinding halt.  Much of the documentation and Usenet postings I have 
found for RPost seem to relate to older versions of INN prior to the use 
of "sm".  From what I can gather, I need to develop my own scripts to 
make it work with newer versions.  I was hoping that someone could point 
me at a source of info on RPost in relation to its use with newer 
versions of INN.  Does such documentation even exist?

I appreciate that I might be trying to run before I can walk by jumping 
right in to INN/Suck/RPost, without any prior Unix experience, but the 
learning curve is going well and I'm discovering the how's and why's as I 
go along.  Any pointers would be very much appreciated.

Steve
Re: INN with Suck and RPost
#59850
Author: Erik Hensema
Date: Mon, 05 Aug 2002 18:36
86 lines
3377 bytes
Steve (nospam@invalid.com) wrote:
> The final step of my implementation was to install RPost so as to push 
> local posts back to my ISP's news server.  At this point my progress came 
> to a grinding halt.  Much of the documentation and Usenet postings I have 
> found for RPost seem to relate to older versions of INN prior to the use 
> of "sm".  From what I can gather, I need to develop my own scripts to 
> make it work with newer versions.  I was hoping that someone could point 
> me at a source of info on RPost in relation to its use with newer 
> versions of INN.  Does such documentation even exist?
> 
> I appreciate that I might be trying to run before I can walk by jumping 
> right in to INN/Suck/RPost, without any prior Unix experience, but the 
> learning curve is going well and I'm discovering the how's and why's as I 
> go along.  Any pointers would be very much appreciated.

Creating that script would be a good way to learn Unix ;-)

I'm using this snippet:

#v+
do_push() {
	OUTGOING=$SPOOLDIR/outgoing/$1

	if [ ! -s $OUTGOING.new ] ; then
		mv $OUTGOING $OUTGOING.new
		$CTLINND flush $1
	fi
	
	while read token rest; do
		$SM $token | $SCRIPT | $RPOST $1 $2 -M

		if [ $? -ne 0 ] ; then
			echo $token >> $OUTGOING.new.fail
			GOT_ERROR=yes
		fi

	done < $OUTGOING.new

	rm $OUTGOING.new

	if [ -f $OUTGOING.new.fail ]; then
		now=`date +%s`
		mv $OUTGOING.new.fail $OUTGOING.$now
		chmod 0664 $OUTGOING.$now
	fi
}
#v-

Example:

In newsfeeds:

news.provider.net/news.provider.net\
	:*:Tf,Wn:

Call the function with:

do_push news.provider.net <other parameter to rpost>

The other parameter is usually @userpass, where userpass is a file which
contains -U <user> -P <pass>  (only needed when news.provider.net requires
authentication)

$SCRIPT should point to a file containing:

#v+
#!/bin/sh

SEDCMD1="/^NNTP-Posting-Host/d"
SEDCMD2="/^Xref/d"
SEDCMD3="/^X-Trace/d"
SEDCMD4="/^X-Complaints-To/d"
SEDCMD5="/^NNTP-Posting-Date/d"

sed -e ${SEDCMD1} \
    -e ${SEDCMD2} \
    -e ${SEDCMD3} \
    -e ${SEDCMD4} \
    -e ${SEDCMD5}
#v-

That should about do it.
-- 
Erik Hensema (erik@hensema.net)                             ICQ# 8280101
Quoting-HOWTO: http://www.leerquoten.nl
Re: INN with Suck and RPost
#59944
Author: Steve
Date: Mon, 19 Aug 2002 08:19
96 lines
3587 bytes
Erik,

A late in the day reply, but just wanted to say thanks.  I've got RPost 
working fine now based on the info you sent me. :)

Regards
Steve

Erik Hensema wrote:

> Steve (nospam@invalid.com) wrote:
>> The final step of my implementation was to install RPost so as to
>> push local posts back to my ISP's news server.  At this point my
>> progress came to a grinding halt.  Much of the documentation and
>> Usenet postings I have found for RPost seem to relate to older
>> versions of INN prior to the use of "sm".  From what I can gather, I
>> need to develop my own scripts to make it work with newer versions. 
>> I was hoping that someone could point me at a source of info on RPost
>> in relation to its use with newer versions of INN.  Does such
>> documentation even exist? 
>> 
>> I appreciate that I might be trying to run before I can walk by
>> jumping right in to INN/Suck/RPost, without any prior Unix
>> experience, but the learning curve is going well and I'm discovering
>> the how's and why's as I go along.  Any pointers would be very much
>> appreciated. 
> 
> Creating that script would be a good way to learn Unix ;-)
> 
> I'm using this snippet:
> 
> #v+
> do_push() {
>      OUTGOING=$SPOOLDIR/outgoing/$1
> 
>      if [ ! -s $OUTGOING.new ] ; then
>           mv $OUTGOING $OUTGOING.new
>           $CTLINND flush $1
>      fi
>      
>      while read token rest; do
>           $SM $token | $SCRIPT | $RPOST $1 $2 -M
> 
>           if [ $? -ne 0 ] ; then
>                echo $token >> $OUTGOING.new.fail
>                GOT_ERROR=yes
>           fi
> 
>      done < $OUTGOING.new
> 
>      rm $OUTGOING.new
> 
>      if [ -f $OUTGOING.new.fail ]; then
>           now=`date +%s`
>           mv $OUTGOING.new.fail $OUTGOING.$now
>           chmod 0664 $OUTGOING.$now
>      fi
> }
> #v-
> 
> Example:
> 
> In newsfeeds:
> 
> news.provider.net/news.provider.net\
>     :*:Tf,Wn:
> 
> Call the function with:
> 
> do_push news.provider.net <other parameter to rpost>
> 
> The other parameter is usually @userpass, where userpass is a file
> which contains -U <user> -P <pass>  (only needed when
> news.provider.net requires authentication)
> 
> $SCRIPT should point to a file containing:
> 
> #v+
> #!/bin/sh
> 
> SEDCMD1="/^NNTP-Posting-Host/d"
> SEDCMD2="/^Xref/d"
> SEDCMD3="/^X-Trace/d"
> SEDCMD4="/^X-Complaints-To/d"
> SEDCMD5="/^NNTP-Posting-Date/d"
> 
> sed -e ${SEDCMD1} \
>     -e ${SEDCMD2} \
>     -e ${SEDCMD3} \
>     -e ${SEDCMD4} \
>     -e ${SEDCMD5}
> #v-
> 
> That should about do it.

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads