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 >
Internet Message Format  |  1990-12-28  |  844b

  1. From: rsalz@bbn.com (Rich Salz)
  2. Newsgroups: alt.sources
  3. Subject: Re: Gate - simple mail->news->mail gateway suite (Part 1 or 1)
  4. Message-ID: <3137@litchi.bbn.com>
  5. Date: 21 Dec 90 21:53:44 GMT
  6.  
  7. In <1990Dec20.031515.6249@supernet.haus.com> cluther@supernet.haus.com (Clay Luther) writes:
  8. >I wrote this one afternoon to handle the gating of mail to news and news to
  9. >mail.  It is written in script, and tries not to get too fancy.
  10. ...
  11.  
  12. Get the spool file into text, I assume?
  13. >S=`cat $SFILE`
  14.  
  15. If your message has some text that looks like mail
  16. From: your mother
  17. for example, you'll get confused.  How about this, instead
  18.     S=`sed /^$/q <$SFILE`
  19.  
  20. If I'm wrong about the original S=`` line, then never mind.
  21. -- 
  22. Please send comp.sources.unix-related mail to rsalz@uunet.uu.net.
  23. Use a domain-based address or give alternate paths, or you may lose out.
  24.