converting NEWS.DAT to RNEWS to re-import

0 (gro.oi@mt)
Sun, 22 Sep 1996 15:10:20 -0400

First I'll give an url, then the "story"...
http://www.io.org/~tm/newbells.html

The dramatic story of tragedy and triumph, and how you can make a million
dollars writing REXX conversion scripts for Yarn... read on! (-;

Well, my (mis)adventures have netted anyone who might want them four
crusty new potentially (at least some of them) useful REXX scripts.

There are four scripts, and four conversions possible (afterwards i'll
reveal why i made them!):

NEWS.DAT to RNEWS
FOLDER to MAIL
NEWS.DAT to FOLDER (?!)
NEWS.DAT to MAIL (?!?!!)

What good is convering the NEWS.DAT to RNEWS? Well Yarn can import RNEWS
batches. So basically this script allows you to export your entire NEWS.DAT
file and then be able to re-import it (using the -r switch on IMPORT).
There is a reason I needed to do this! Read on, if interested...

Likewise, with the second script above, you can convert a Yarn folder into
importable Email. (I think there's probably already utils to do this, but
not a REXX one!)

The last one is the most dubious. Why would anyone want to convert their
entire NEWS.DAT file to an Email file? I have no idea! It was my first
attempt at messing around... I soon realised the folly of my ways and
changed that script to output to RNEWS format.

The second last script will convert an entire NEWS.DAT file to a Yarn
"folder". This is a pretty useless thing to do also but you can do it if
you wanted, for whatever reason!

MY REASON
---------

I had a rather nasty hard disk problem last week. So bad was it that I
actually had to remove the thing and send it away before I could regain
access to it and attempt to recover any data. I actually did manage to
recover my Yarn NEWS.DAT. After a little yarn "REBUILD" magic I was back in
business!

Except in the meantime, growing very quickly tired of reading news/mail
online, I installed Yarn95 on my mom's computer. I had vague notions that
i'd figure out some way to 'merge' the imported stuff with my original
stuff, if i could recover any of it, when the time came.

Well the time.

Import "junked" the RNEWS that came from pseudo-newsgroups though. Because
it is really email in those folders and they have no "newsgroups:" header.
No problem. I just used the handy "O" function on yarn and sent all those
newsgroups to a folder. Then I made the FOLDER to MAIL script so I could
re-import that again (after marking all messages in the JUNK newsgroup as
READ and then "expire -r junk" to get rid of it-- else the filtered email
would be rejected as duplicates. And they were a few times until i figured
out what was going on!).

All in all it worked out quite nicely, and didn't take too long. The
scripts are surprisingly small. The NEWS.DAT to RNEWS is only about 40
lines, including blank lines and a few comments.

Anyhow, quite possibly no one here would find these scripts useful. But one
never knows. Just thought i'd tell y'all, i got 'em-- just in case. They
aren't very polished, and there isn't a whole lot of error checking. But
they worked wonderfully for me when i needed them.

And for my services, so delighted was I to have all my news/mail back on my
fixed up computer, I wrote myself out a check for ONE MILLION DOLLARS!
Unfortunately it bounced. Oh well.

-- 
 ,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,_,
  Tim Muddleten = with love and tomato sandwiches = as544@torfree.net
  -=-=-= read The Brothers Karamazov by Fyodor Dostoyevsky now =-=-=-
 `'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^`'^
    Yarn/2 Bells & Whistles Page: http://www.io.org/~tm/bells2.html
   * September 22nd * International Day of Salty Things