🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
1 messages
1 total messages Started by Mail account for root Mon, 25 Nov 1996 00:00
"sendbatch" via a relay
#12624
Author: 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

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