Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!emory!gatech!mephisto!burns From: burns@cc.gatech.edu (James E. Burns) Newsgroups: comp.sys.next Subject: Re: Reading NeXTMail from an ASCII dump... Message-ID: Date: 28 May 91 14:41:42 GMT References: <1991May28.110642.1503@leland.Stanford.EDU> Sender: news@gatech.edu Distribution: usa Organization: School of ICS, Georgia Tech Lines: 60 In-reply-to: bard@jessica.stanford.edu's message of 28 May 91 11:06:42 GMT I use the GNU Emacs RMAIL facility to read mail, since it has some features I like that NeXTMail does not support well. I wrote/modified a couple of small utilities to decypher the occasional NeXTMail messages I receive. A function for your .emacs file. (If you don't use GNU Emacs, you can simulate the first function with your editor of choice --- just put the desired message in /tmp/nextmsg and trim it from the "begin" line to the end of the message.) (defun denext-msg () "Find the NeXT attachment and write it to /tmp/nextmsg in preparation for denext." (interactive) (end-of-buffer) (re-search-backward "^begin ") (write-region (point) (point-max) "/tmp/nextmsg") (message "Now execute denext in the shell.") ) A script for your bin (I call it "denext"). Once /tmp/nextmsg is set up, call denext from a shell. This will open the directory containing the various attachments. Just double click the individual items to look at them. #! /bin/csh -f # denext # Extract the NeXT-encoded mail message in /tmp/nextmsg # Original version by Mike Dixon (mdixon@parc.xerox.com) # Heavily modified 6/27/90, James E. Burns # # Before calling, save the "begin 0 .tar ... end" part of the message # to /tmp/nextmsg (In Emacs: Special function denext-msg does is # automtically.) # cd /tmp rm .tar* >& /dev/null rm -r d.tar* >& /dev/null if (! -f nextmsg) then echo "First store the message to decode in /tmp/nextmsg" exit 1 endif uudecode nextmsg set tname = .*tar* mv $tname nextmsg.Z chmod 644 nextmsg.Z mkdir d$tname cd d$tname zcat ../nextmsg.Z | tar xf - open . jim burns -- James E. Burns Associate Professor (404) 894-3816 Fax: (404) 853-9378 College of Computing, Georgia Tech, Atlanta GA 30332-0280 Internet : burns@CC.GaTech.edu uucp: ...!{akgua,allegra,hplabs,ihnp4,linus,seismo,ulysses}!gatech!cc!burns