home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!watson.ibm.com
- From: chess@watson.ibm.com (David M. Chess)
- Message-ID: <921106.19283D.chess@watson.ibm.com>
- Date: 06 Nov 92 14:01:26 EDT
- Newsgroups: alt.hackers
- Approved: Right-thinking people everywhere
- Subject: decode
- Lines: 34
-
- I'm sure this has been done j-zillion times before, but it was
- easier (and more relaxing) to Just Do It than to find someone
- else's code. So don't flame me on that! *8)
-
- I get lots of uuencoded and xxdecoded things that come to me as
- mail on my CMS account. I would manually look to see which coding
- was used, decode the uu things in CMS with a utility someone wrote
- and download them to my PS/2 (the eventual destination), and download
- and then decode the xx things (because I had an xxdecode for DOS that
- I could run in the OS/2 DOS box). I would also take the non-coded
- parts of the notes (often the only clues as to what the coded parts
- were supposed to be), and save them away as well. Actually, I would
- generally put the notes aside for days or weeks, because the above
- was too much work, and eventually get around to them only when
- lots of guilt had accumulated. No fun!
-
- So in need of a minor hack anyway for karmic cleansing purposes,
- I wrote a small thing in reasonably portable C that finds a
- likely "begin" line, uses the obvious h/M heuristic to figure out
- which encoding is in use, and does the decoding. If asked nicely
- via a switch, it also saves away the non-coded parts of the note
- in a side-file under another name. So now I can do the whole bit
- under OS/2 (or whatever).
-
- This post itself is the usual maiden-posting hack, probably
- somewhat different than the usual one, in that I'm on the
- other side of several gateways and posting from CMS. I
- couldn't just torture postnews slightly; I had to actually
- learn SMTP. Must have taken several *minutes*! *8)
-
- - -- -
- David M. Chess \ Femmes aux tetes de fleurs
- High Integrity Computing Lab \ retrouvant sur la plage la
- IBM Watson Research \ depouille d'un piano a queue
-