🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
6 messages
6 total messages Started by Robert A. Yetman Thu, 22 May 1997 00:00
ANNOUNCE suck-3.5.0 - pull news from remote NNTP server
#17928
Author: Robert A. Yetman
Date: Thu, 22 May 1997 00:00
166 lines
6683 bytes
This is to announce the release of suck-3.5.0 

PREFACE
=======
Original Author - Tim Smith (tzs@coho.halcyon.com)
Maintainers - 
March 1995 - Sven Goldt (goldt@math.tu-berlin.de)
July 1995  - Robert A. Yetman (boby@pixi.com)

Current Maintainer - boby@pixi.com
Japanese Docs - Motoharu Kubo (mkubo@3ware.co.jp)
Italian Docs - Giuseppe De Marco (gdm@rebel.net)
Spanish Docs - Simon Mudd (sjmudd@redestb.es)
	       Abraham Nevado (nevado@redestb.es)

INTRODUCTION
============
The primary use for suck is to feed a local INN or CNEWS server, without
the remote NNTP feeding you articles.  It is designed for a small, partial
news feed.  It is NOT designed to feed 10,000 groups and 3 Gigs of articles
a day.

This package contains software for copying news from an NNTP server to your
local machine, and copying replies back up to an NNTP server.

The suck/rpost combination allows you to run your own INN/CNEWS site, 
controlling where you get your news, and where you post outgoing articles.
Suck/rpost use only standard NNTP commands that are used by your favorite
news reader (tin, xvnews, strn) such as POST and ARTICLE.  If you can use tin
or xvnews against a NNTP site, than you can use Suck/Rpost.  

suck			Pull a small newsfeed from an NNTP server

lpost			Gives one article fetched by suck to the local server.

rpost			Posts article(s) to a remote NNTP server

testhost        	Check to see what commands your host recognizes or
			get the active or new list.

lmove * NEW *		put articles in news/group/number format.

************************************************************************
NOTE:
Suck will not work with obsolete NNTP servers that can't handle the xhdr
command.

NOTE2:
This code assumes an ANSI-compliant compiler, it will NOT work with old
compilers (Such as Sun's) which don't accept function prototypes.  You could
try using the unprotoize program included in gcc, but then if you are going
to get that, why not just build gcc? :)

NOTE3:
The Makefile assumes you are using GNU make, other makes may or may not work.

NOTE4:
If your remote INN server slows drastically after 100 messages are downloaded,
and they are using INN 1.5.1, chances are they compiled INN with "LIKE_PULLERS"
set to DONT, which causes INN to put a small sleep before each message.  
Talk to the SA for the system and see if they'll compile with "DO".  Chances
are they didn't even know this option existed.


LOCATION
========
NEW!
Suck now has a web page - visit http://www.pixi.com/~boby/index.html to
download the latest version or view the README file.  Comments welcome.

FTP Sites:
Site1	     = sunsite.unc.edu
Path1        = /pub/Linux/system/news/transport
File1        = suck-3.5.0.tar.gz

Site2        = tsx-11.mit.edu
Path2        = /pub/linux/sources/sbin
File2        = suck-3.5.0.tar.gz

THANKS to all the users who have sent me mail, both good and bad.

A DOUBLE THANKS to the v3.0 beta-testers:
- harleys@io.org (current address unknown)
- jh@yahoo.com
- maho@Uni-paderborn.de
- paonia@home.welcomehome.org
- stuart@mannet.mcb.net
- tom@mtanet.com

They helped me work out quite a few bugs with portability problems.

************************************************************************  
If you don't see a feature that you asked for, it is because I have
rejected it for various reasons, usually because I can't find a 
graceful way to implement it in the code, or I don't think that it
is something that is needed by most of the users.

---------------------------HOW-TO-USE-------------------------------------
1.  run ./configure
2.  If your history file is not a flat file, edit the top of the Makefile.
3.  Edit suck_config.h - lots of configurable stuff here
4.  Make it.  (make CFLAGS=-O2, make install)
5.  Create a sucknewsrc - which groups to download (see suck man pg)
6.  Take a look at sample/get.news(.innxmit or .rnews)
	These scripts show the whole scheme, from sucking news to
	posting replies to your remote host.  Use .innxmit if you
	are using INND, or .rnews if you are using CNEWS.
	The get.news.innxmit is the script I actually use, since I
	am running INND.
7.  READ THE MAN PAGES
**************************************************************************
MAJOR CHANGES FROM 3.4.1 -> 3.5.0

* New program - lmove, to put articles in news/group/number format.  See
	man pages for more details.  This is a separate program, that can
	be called by suck (-bl option).  The reason it is a separate program
	is so that if there are problems, you can rerun it without rerunning
	suck.

* Due to lack of time by maintainer, there are no updated Italian
        documentations, the versions here are still 3.4.1 versions.

* Debug is now a runtime option (except for DEBUG1 for both.c). See -D
	option in man pages.

* Makefile now supports direct installation of foreign language man pages
	with install_Japanese, install_Italian, install_Spanish options.

* Suck now stores the article being downloaded into a tmp file, and renames
	it after a sucessful download.  

* Suck, on a restart, in addition to getting all old articles, will also
	scan for new articles and add them to the list.

* Fixed bug in do_supplemental() that caused a core dump and fixed a bad
	fprintf() in do_lockfile()

* Various tweaks and removal of code no longer needed.

**************************************************************************
PLANS FOR NEXT VERSION.

1. Pipelining (ask for next message while still getting previous message)

***************************************************************************
MAILING LIST!
Thanks to Motoharu Kubo (mkubo@3ware.co.jp), there is now a mailing list
for suck.  It is intended as a place to discuss problems, etc, plans, and
other issues related to suck.  Its address is "suck-ml@3ware.co.jp".

To subscribe to the mailing list, send a mail message to majordomo@3ware.co.jp
with the message text reading "subscribe suck-ml"

boby@pixi.com





-- 
boby@pixi.com (Robert A. Yetman)



Re: ANNOUNCE suck-3.5.0 - pull news from remote NNTP server
#17897
Author: Alan E Derhaag
Date: Wed, 21 May 1997 00:00
169 lines
5258 bytes
boby@pixi.com (Robert A. Yetman) writes:

> This is to announce the release of suck-3.5.0 
> 
> PREFACE
> =======
> Original Author - Tim Smith (tzs@coho.halcyon.com)
> Maintainers - 
> March 1995 - Sven Goldt (goldt@math.tu-berlin.de)
> July 1995  - Robert A. Yetman (boby@pixi.com)
> 
> Current Maintainer - boby@pixi.com
> Japanese Docs - Motoharu Kubo (mkubo@3ware.co.jp)
> Italian Docs - Giuseppe De Marco (gdm@rebel.net)
> Spanish Docs - Simon Mudd (sjmudd@redestb.es)
> 	       Abraham Nevado (nevado@redestb.es)
> 

[...]

> 
> To subscribe to the mailing list, send a mail message to majordomo@3ware.co.jp
> with the message text reading "subscribe suck-ml"
> 
> boby@pixi.com
> 
> 
> 
> 
> 
> -- 
> boby@pixi.com (Robert A. Yetman)
> 
> 

Now there's an idea.. but if you're already running inn-1.. why not use the
facilities already built in? The following script could be used to
suck articles in selected newsgroups using nntpget supplied in the
inn-1.5.1 distribution:

---- begin code segment ----

#!/bin/bash
#
#

# import variables from the innshellvars built with innd
. /usr/lib/news/innshellvars

newsfeed=<supply-a-news-feed-host>
GPATH=/usr/lib/news/groups

NEWSTR="news.admin.important news.admin.technical news.admin.policy"

dating=false
first="yes"
BASE=gottem.report

if [ $# > 0 ]
then
    case "X$1" in
    X-d)  dating=true
	  first="no"
	  Dater=`date +"%b %e"`
	  ;;
    X*)   DOMORE=false
          ;;
    esac
    $DOMORE && shift
else
    ##  Compress the file.
    ${COMPRESS} <${BASE} >${BASE}.0${Z} && rm -f ${BASE}
    chmod 0440 ${BASE}.0${Z}

    ##  Do rotation.
    EXT=`expr ${CYCLES}`
    rm -f ${BASE}.${CYCLES}${Z}
    while [ ${EXT} -gt 0 ] ; do
	NEXT=${EXT}
	EXT=`expr ${EXT} - 1`
	test -f ${BASE}.${EXT}${Z} \
	    && rm -f ${BASE}.${NEXT}${Z} \
	    && mv ${BASE}.${EXT}${Z} ${BASE}.${NEXT}${Z}
    done
fi

for t in $NEWSTR
do
   if [ "$first" = "yes" ]
   then
      echo "Starting with"
      echo -n "Starting with " >wolfe.report
      first=no
   fi
   if [ $dating = true ] \
       && [ "`ls -l ${GPATH}/$t | cut -c43-48`" = "$Dater" ]
    then
       continue
    fi

   echo -n -e "\n$t:\n" >>$BASE
   echo -n -e "$t:\t"
   LEN=`expr length $t`
   if [ $LEN -lt 23 ]
   then
      echo -n -e "\t"
   fi
   if [ $LEN -lt 15 ]
   then
      echo -n -e "\t"
   fi
   $NNTPGET -o -n $t -u $GPATH/$t $newsfeed 2>>$BASE
   if [ $? -gt 0 ]
   then
   	echo -n "$? "
   	tail -1 $BASE
   else
   	cat $GPATH/$t
   fi
done   
echo "$0 complete `date`" >/dev/console

---- end of code segment ----

The $GPATH directory contains files that are touched the first time
with a date to begin the range. After the first receipt nntpget will
write the status as: `got ? offered ? sent ? rejected ?' and set the
date stamp in preparation for the next request date range. The `-o'
tells nntpget to offer the articles to the local server. The `-u'
tells nntpget to use the date stamp of the supplied file as the
beginning date range. The `-n' supplies the newsgroup name. A few
niceties are built into this code to allow a restart after an abort to
continue with any of the touch files that were not touched. A status
file, $BASE, is archived according to the $CYCLE variable in
innshellvars. The output is suitable for running from a crontab user
news authority.

The rpost can be supplied with modified nntpsend/innxmit.c files. I
can post a patch to make the fix necessary to switch innxmit's `ihave'
to `post' type processing by a command line switch. ..just ask!

Of course, like always, there are restrictions. The nntpget may have
to be talking to a NNTP type newsfeed. The nntpget does use the
newnews command to the NNTP server but I fail to see why someone would
state that no reputable software uses the command. Most NNTP servers
implement it but perhaps you'd like to rewrite nntpget ..or use suck.

This post was in no way an attempt to discredit or belittle the suck
endeavor. I have heard only good reviews from those that are saying
anything. I'm sure it is a good product. I only wanted to point out
that if you are using the inn-1.5.1 or a predecessor why not make the
improvements needed to allow it to do the job it does so well
already. 

-- 
 Alan E. Derhaag                     Omnifax/Danka Industries
 phone: +1 425 643 7126              1800 136th Place Unit #3
  http://www.wolfenet.com/~aderhaag/       Bellevue, WA 98053
 email: aderhaag@wolfenet.com  aedmis@danka.gate.net








Re: ANNOUNCE suck-3.5.0 - pull news from remote NNTP server
#17924
Author: Alan E Derhaag
Date: Thu, 22 May 1997 00:00
31 lines
1993 bytes

Karl Kleinpaste <karl@jprc.com> writes:
> Alan E Derhaag <bitbucket@wolfenet.com> writes:
> > Now there's an idea.. but if you're already running inn-1.. why not use the
> > facilities already built in?
> ...
> >    $NNTPGET -o -n $t -u $GPATH/$t $newsfeed 2>>$BASE
> 
> nntpget(1) uses the NEWNEWS verb, which is a hideous pig of a resource
> consumer in the server.  And as such, NEWNEWS can be disabled entirely
> in recent INN distributions.  In fact (just now checking my
> $inn/config/config.dist), it's disabled by default.
> 
> ##  Allow the NEWNEWS NNTP command?   Pick DO or DONT.
> ##  (RFC 977 says you should; your server performance may not agree...)
> #### =()<ALLOW_NEWNEWS		@<ALLOW_NEWNEWS>@>()=
> ALLOW_NEWNEWS		DONT

Well.. I guess I'm in the market for a suck feed, myself. When I
e-mailed my ISP/news supplier asking about it, they stated that there
are plans in the works to upgrade their news server and curtail all
suck feeds in the process, presumably by disabling the NEWNEWS verb.

-- 
 Alan E. Derhaag                     Omnifax/Danka Industries
 phone: +1 425 643 7126              1800 136th Place Unit #3
  http://www.wolfenet.com/~aderhaag/       Bellevue, WA 98053
 email: aderhaag@wolfenet.com  aedmis@danka.gate.net

Re: ANNOUNCE suck-3.5.0 - pull news from remote NNTP server
#17927
Author: Karl Kleinpaste
Date: Thu, 22 May 1997 00:00
18 lines
1326 bytes
Alan E Derhaag <bitbucket@wolfenet.com> writes:
> Now there's an idea.. but if you're already running inn-1.. why not use the
> facilities already built in?
...
>    $NNTPGET -o -n $t -u $GPATH/$t $newsfeed 2>>$BASE

nntpget(1) uses the NEWNEWS verb, which is a hideous pig of a resource
consumer in the server.  And as such, NEWNEWS can be disabled entirely
in recent INN distributions.  In fact (just now checking my
$inn/config/config.dist), it's disabled by default.

##  Allow the NEWNEWS NNTP command?   Pick DO or DONT.
##  (RFC 977 says you should; your server performance may not agree...)
#### =()<ALLOW_NEWNEWS		@<ALLOW_NEWNEWS>@>()=
ALLOW_NEWNEWS		DONT

Re: ANNOUNCE suck-3.5.0 - pull news from remote NNTP server
#17943
Author: John Ridley
Date: Fri, 23 May 1997 00:00
33 lines
2086 bytes
On 22 May 1997 18:22:38 -0700, Alan E Derhaag <bitbucket@wolfenet.com>
wrote:

>
>Karl Kleinpaste <karl@jprc.com> writes:
>> Alan E Derhaag <bitbucket@wolfenet.com> writes:
>> > Now there's an idea.. but if you're already running inn-1.. why not use the
>> > facilities already built in?
>> ...
>> >    $NNTPGET -o -n $t -u $GPATH/$t $newsfeed 2>>$BASE
>> 
>> nntpget(1) uses the NEWNEWS verb, which is a hideous pig of a resource
>> consumer in the server.  And as such, NEWNEWS can be disabled entirely
>> in recent INN distributions.  In fact (just now checking my
>> $inn/config/config.dist), it's disabled by default.
>> 
>> ##  Allow the NEWNEWS NNTP command?   Pick DO or DONT.
>> ##  (RFC 977 says you should; your server performance may not agree...)
>> #### =()<ALLOW_NEWNEWS		@<ALLOW_NEWNEWS>@>()=
>> ALLOW_NEWNEWS		DONT
>
>Well.. I guess I'm in the market for a suck feed, myself. When I
>e-mailed my ISP/news supplier asking about it, they stated that there
>are plans in the works to upgrade their news server and curtail all
>suck feeds in the process, presumably by disabling the NEWNEWS verb.
>

I switched to XNews instead of suck; it doesn't use the NEWNEWS verb,
and it handles posting via the POST verb rather than transfer.  It
seems to work pretty well, but I only suck a few groups.

Re: ANNOUNCE suck-3.5.0 - pull news from remote NNTP server
#17953
Author: Jonathan I. Kamens
Date: Fri, 23 May 1997 00:00
19 lines
1368 bytes
In article <3385b03e.3666733@198.51.241.211>, jridley@usemail.com (John Ridley) writes:
|> I switched to XNews instead of suck; it doesn't use the NEWNEWS verb,
|> and it handles posting via the POST verb rather than transfer.  It
|> seems to work pretty well, but I only suck a few groups.

Suck doesn't use NEWNEWS, and it, too, uses POST rather than IHAVE.

The people complaining about NEWNEWS were talking about the
nntpget-based script posted here, not about suck.

Just setting the record straight...

(Unnecessary "Distribution: inet" removed.)

-- 
Jonathan Kamens  |   Veritas Software Corporation  |   jik@cam.ov.com

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