home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / alt / hackers / 1625 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  2.0 KB

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