Path: utzoo!mnetor!uunet!husc6!mit-eddie!uw-beaver!tektronix!tekcrl!scott From: scott@tekcrl.TEK.COM (Scott Huddleston) Newsgroups: comp.mail.mh Subject: Re: Migrating MH folders to elm mailboxes ? Message-ID: <2198@tekcrl.TEK.COM> Date: 7 Jan 88 23:38:23 GMT References: <19836@amdcad.AMD.COM> <1599.568513624@hplpm> Reply-To: scott@tekcrl.UUCP (Scott Huddleston) Organization: Tektronix, Inc., Beaverton, OR. Lines: 17 Summary: mhpath helps mhpath is often better than shell globbing for converting MH message specs to unix file names. Besides being more robust, mhpath orders message names numerically, whereas globbing orders them alphabetically. Changing > cd ~/Mail/inbox #or whatever folder > foreach msg ( `ls [1-9]*` ) to foreach msg ( `mhpath +inbox all` ) #or whatever folder In article <1599.568513624@hplpm> marvit%hplpm@HPLABS.HP.COM (Peter Marvit) gives the following improved script for converting an MH folder to an Elm-readable file (spaces in the From line are important): foreach msg ( `mhpath +inbox all` ) #or whatever folder cat "From null Wed Jan 6 00:00 PST 1988" >> /tmp/elm-msgs cat $msg >> /tmp/elm-msgs end elm -f /tmp/elm-msgs