Gate - simple mail->news->mail gateway suite (Part 1 or 1)

Rich Salz rsalz at bbn.com
Sat Dec 22 08:53:44 AEST 1990


In <1990Dec20.031515.6249 at supernet.haus.com> cluther at supernet.haus.com (Clay Luther) writes:
>I wrote this one afternoon to handle the gating of mail to news and news to
>mail.  It is written in script, and tries not to get too fancy.
...

Get the spool file into text, I assume?
>S=`cat $SFILE`

If your message has some text that looks like mail
From: your mother
for example, you'll get confused.  How about this, instead
	S=`sed /^$/q <$SFILE`

If I'm wrong about the original S=`` line, then never mind.
-- 
Please send comp.sources.unix-related mail to rsalz at uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.



More information about the Alt.sources mailing list