🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #12624

"sendbatch" via a relay

#12624
From: Mail account for root
Date: Mon, 25 Nov 1996 00:00
66 lines
2375 bytes
My news server is behind a firewall - so I have to use a relay to send any
uucp batches.  Below are the patches for "sendbatch" (inn 1.5b2, the patch
also contains an addition from "AKL"):

--- sendbatch.ORIG	Mon Nov 25 07:28:12 1996
+++ sendbatch	Sat Nov 23 19:59:48 1996
@@ -53,6 +53,11 @@
 	BYTESPERRUN=''
 	continue
 	;;
+    -R*)
+	## TB - consider a possible relay
+	RELAY=`expr "${SITE}" : '-R\(.*\)'`
+	continue
+	;;
     -r*)
 	RNEWS=`expr "${SITE}" : '-r\(.*\)'`
 	continue
@@ -75,6 +80,12 @@
 	ECHO="echo '#! cunbatch'"
 	continue
 	;;
+    -g)
+	# AKL
+	COMP="; exec /bin/gzip"
+	ECHO="echo '#! gunbatch'"
+	continue
+	;;
     +c)
 	COMP=''
 	C7=''
@@ -111,6 +122,13 @@
     esac
     test -z "${BYTESPERRUN}" && BYTESPERRUN=${BYTESQUEUED}
 
+    ## TB - Massage the site routing with the relay if specified
+    if [ -n "${RELAY}" ]; then
+	RSITE="${RELAY}!${SITE}"
+    else
+	RSITE="${SITE}"
+    fi
+
     ##  We have a site; lock it.
     LOCK=${LOCKS}/LOCK.${SITE}
     trap 'rm -f ${LOCK} ; exit 1' 1 2 3 15
@@ -195,9 +213,9 @@
     if [ -f ${SITE}.cmd ] ; then
 	UUXCOM="`cat ${SITE}.cmd`"
     elif [ -n "${ECHO}" -o -n "${COMP}" ]; then
-	UUXCOM="( ${ECHO} ${COMP} ) | ${UUX} - ${UUXFLAGS} ${SITE}!${RNEWS}"
+	UUXCOM="( ${ECHO} ${COMP} ) | ${UUX} - ${UUXFLAGS} ${RSITE}!${RNEWS}"
     else
-	UUXCOM="${UUX} - ${UUXFLAGS} ${SITE}!${RNEWS}"
+	UUXCOM="${UUX} - ${UUXFLAGS} ${RSITE}!${RNEWS}"
     fi
 
     ## Create batches.


--______ __ ---------------------------------------------------------
 '  /  '/  )                   Thomas Bullinger
   /   /--<   This is the mail account for root@btoy1.rochester.ny.us
(_/   /___/      http://btoy1-gw.roc.servtech.com/index.phtml

Technical Details
Message-ID: <57c3kn$9q1$1@btoy3.btoy1.rochester.ny.us>
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

Show Full Headers
Complete Article Headers
Message-ID: <57c3kn$9q1$1@btoy3.btoy1.rochester.ny.us>
Subject: "sendbatch" via a relay
Date: Mon, 25 Nov 1996 00:00:00 +0000
From: Mail account for root <rootmail@btoy1.rochester.ny.us>
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: 198592877
Content-type: text/plain; charset=US-ASCII
Organization: A private site
Mime-version: 1.0
Reply-to: news@btoy1.rochester.ny.us
Newsgroups: news.software.nntp