home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Source Code 1992 March
/
Source_Code_CD-ROM_Walnut_Creek_March_1992.iso
/
usenet
/
altsrcs
/
2
/
2392
< prev
next >
Wrap
Internet Message Format
|
1990-12-28
|
844b
From: rsalz@bbn.com (Rich Salz)
Newsgroups: alt.sources
Subject: Re: Gate - simple mail->news->mail gateway suite (Part 1 or 1)
Message-ID: <3137@litchi.bbn.com>
Date: 21 Dec 90 21:53:44 GMT
In <1990Dec20.031515.6249@supernet.haus.com> cluther@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@uunet.uu.net.
Use a domain-based address or give alternate paths, or you may lose out.