Path: utzoo!attcan!uunet!cs.utexas.edu!rutgers!ub!boulder!frechett From: frechett@boulder.Colorado.EDU (-=Runaway Daemon=-) Newsgroups: comp.mail.elm Subject: Re: Elm <-> MH utility? Message-ID: <26435@boulder.Colorado.EDU> Date: 18 Sep 90 02:11:54 GMT References: <15473@reed.UUCP> Sender: news@boulder.Colorado.EDU Reply-To: frechett@snoopy.Colorado.EDU (-=Runaway Daemon=-) Organization: University of Colorado, Boulder Lines: 38 In article <15473@reed.UUCP> chaffee@reed.UUCP (Alex Chaffee) writes: >I'm getting ready to write a sed or awk script which converts MH folders >into standard /usr/spool/mail-style folders, so that elm can read them. But >before I do, I thought I should ask if anyone else has such a beast. > >Much obliged, > > - Alex >-- >Alex Chaffee >chaffee@reed.{UUCP,BITNET} >Reed College, Portland OR 97202 >____________________ Well, originally I would have said to use packf, but after playing with it I see that it doesn't make mail readable files. But it does set up all the messages in one file. I think that it is still useful, so here is how I might go about doing what you need. I tryed this and it works fine. Just make an alias and substitute in control-A for ^A. alias packit 'packf +\!^ -file \!$ ; cat \!$ | sed "/^A^A^A^A/g" | tee > \!$' Given that you have a folder called +ziltch you can go to Mail directory and type packit ziltch Ziltch and it will pack all the messages into Ziltch and then it runs it through sed and replaces all the ^A^A^A^A with spaces and then copies the edited version back to the original. This little alias will create a file that you can read with mail. Hope you can use it. BTW I just thought this one up, so if you find that I have not tested it extensively enough then sue me. ;) I do know that it worked for me quite well. ian -- -=Runaway Daemon=-