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