home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / question / 14645 < prev    next >
Encoding:
Text File  |  1992-12-13  |  1.5 KB  |  40 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!nwnexus!osiris
  3. From: David Ruggiero <osiris@halcyon.com>
  4. Subject: What do *you* use to format mail?
  5. Message-ID: <1992Dec13.091156.19462@nwnexus.WA.COM>
  6. Originator: osiris@halcyon.com
  7. Sender: sso@nwnexus.WA.COM (System Security Officer)
  8. Reply-To: osiris@halcyon.halcyon.com (David Ruggiero)
  9. Organization: [none - why fight entropy?]
  10. Date: Sun, 13 Dec 1992 09:11:56 GMT
  11. Lines: 27
  12.  
  13. Now that I've finally learned how to send what I'm editing with vi
  14. through a filter, I'd like to automate my most tedious emailing task...
  15. The idea here is to find (and give credit to) the lone hacker out there
  16. with the most fiendishly elegant sed/awk/nawk/perl/shell routine to format
  17. their mail messages. By this, I mean at the least taking a block of
  18. random text and:
  19.  
  20. 1) Evenly formatting the lines to a preset (or specified) length, 
  21.    performing concatenations and wrapping as necessary.
  22.  
  23. 2) Preceding each formatted line with a variable character string
  24.    (such as the "> " to indicate the text being replied to).
  25.  
  26. 3) (Optionally) preserving blank lines within the text.
  27.  
  28. Other nifty functions (passing to the spell checker, allowing indentation
  29. control and/or preservation, etc.) would be neat, too, but the three things
  30. above are the meat of the questions.
  31.  
  32. I will post the best solutions(s) I receive (but that shouldn't dissuade
  33. anyone from posting themselves if they have a good/favorite routine them-
  34. selves).
  35.  
  36. Thanks for your input and advice...David
  37.  
  38. -- 
  39. David Ruggiero  (jdavid@halcyon.com)       Seattle, WA: Home of the Moss People
  40.