🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #17897

Re: ANNOUNCE suck-3.5.0 - pull news from remote NNTP server

#17897
From: 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








Technical Details
Message-ID: <3ergt4pu.fsf@AlanSys.newera.com>
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!not-for-mail
References: <5m03lo$35o$1@juryrig.pixi.com>

Show Full Headers
Complete Article Headers
Message-ID: <3ergt4pu.fsf@AlanSys.newera.com>
Subject: Re: ANNOUNCE suck-3.5.0 - pull news from remote NNTP server
Date: Wed, 21 May 1997 00:00:00 +0000
From: Alan E Derhaag <bitbucket@wolfenet.com>
References: <5m03lo$35o$1@juryrig.pixi.com>
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!not-for-mail
X-Deja-AN: 243012203
Distribution: inet
Sender: root@AlanSys.newera.com
Organization: New Era Software Development
Newsgroups: news.software.nntp