[news.software.b] relaying news as mail

davison@drivax.UUCP (Wayne Davison) (03/14/90)

David Neal (abbadon@nuchat.UUCP) wrote:
} I want to bounce news that is received
} via uucp to my secondary newshosts. I do NOT want to wait until
} the local news software creates a batch for me. I just want to 
} echo batches to the new news host as they arrive. Ideas, anyone?

This sounds similar to something I did a while back to provide all our
received data to a site even though we 'x'-out some of the received data
locally.

The method works like this, I first modified newsspool to output the batch
name upon success.  Then I added a uux line to the rnews script to send
the newly created batch to our downstream site (I used the link option to
save space).  Then (and this is the part that makes it work), you must modify
the downstream site's sys file to exclude sending you any news that has
already passed through the site giving you the uucp feed (we get only one
main feed) because your site name will not appear in the path.

The changes look like this:

*** newsspool.c.dist	Sat Sep 16 16:43:10 1989
--- newsspool.c	Mon Nov  6 20:24:01 1989
***************
*** 226,231 ****
--- 226,232 ----
  	if (debug)
  		fprintf(stderr, "succeeded\n");
  	(void) unlink(tmpname);
+ 	printf( "%s\n", name );
  }
  
  /*
*** rnews.batch.dist	Mon Sep 18 00:28:27 1989
--- rnews.batch	Thu Jan 11 01:41:29 1990
***************
*** 27,32 ****
--- 27,33 ----
  
  if newsspool >/tmp/ngripe.$$ 2>&1		# qqq (marker for Makefile)
  then
+ 	uux -l -r -gd receiver!rnews \<`cat /tmp/ngripe.$$`
  	rm -f /tmp/ngripe.$$
  	exit 0
  else

The sys file on 'receiver' should be modified to add the '/exclusion'
clause, as in the following example.  Assume that 'feeder' is running
the above kludge and getting its news from 'backbone':

feeder/backbone:comp,news,sci,rec,misc,soc,talk/all,!local:f:

This sends all news you receive or generate that didn't come through
'backbone' to feeder.  The whole thing is definitely a kludge, but it
worked for the short time it was needed.

One thing to keep in mind, is that the batch files generated in this manner
are C news-specific -- they do not contain the "#! cunbatch" line.  If the
downstream site you need to feed is a B news site, you'll need to do things
a little differently.
-- 
Wayne Davison           \  /| / /| \/ /| /(_)    davison%drivax@uts.amdahl.com
davison@drivax.UUCP    (_)/ |/ /\| / / |/  \         ...!amdahl!drivax!davison