[comp.mail.elm] Migrating MH folders to elm mailboxes ?

indra@amdcad.AMD.COM (Indra Singhal) (01/06/88)

I have 3 months worth of mail, all in mh style
folders which are directories with numeric msg
names.
	I have heard raves about the elm system
and would like to check it out first-hand. I
dont want to loose the structure of my mail
folders. Are there any existing conversion
techniques ?
	Thanks in advance !!
-- 
(-:-)                                                        (-:-)
-I said so... & said it for myself.             Indra K. Singhal
{ucbvax,decwrl,allegra}!amdcad!indra or amdcad!indra@decwrl.dec.com

taylor@hplabs.HP.COM (Dave Taylor) (01/06/88)

Indra Singhal asks how to take MH folders and translate them into
folders that Elm will like.

This turns out to be rather simple, actually.  The key is that you want
to have all the files `catted' into a single master file, so you can
go into the MH folder subdirectory and then type:

	% alias mk-folder   'cat * >! $cwd:t'

to get a folder created in a given subdirectory with the same name as
the directory.  That is, say you have a folder/directory called "inbox".
The following commands:

	% cd inbox
	% mk-folder

will result in your having an Elm-style [*] folder called "inbox" within
the directory.  You can then invoke Elm with something akin to:

	% elm -f inbox

to read it in.  Then you should try the various sorting options and
all (type `O' to get into the Options screen)...

In any case, that's how it could be done easily.

						-- Dave Taylor
						Hewlett-Packard Labs

[*] Elm folders are in essentially the same format as Berkeley Mail (etc)
    folders too - the only difference is that Elm doesn't require a blank
    line between messages.