Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!hellgate.utah.edu!csn!boulder!gore!jacob From: jacob@gore.com (Jacob Gore) Newsgroups: comp.sys.next Subject: Re: Dumb terminal user mail agent Message-ID: <130167@gore.com> Date: 18 Feb 91 15:19:01 GMT References: <16779@venera.isi.edu> Reply-To: jacob@gore.com (Jacob Gore) Organization: Gore Enterprises Lines: 29 / comp.sys.next / declan@remus.rutgers.edu (Declan McCullagh/LZ) / Feb 18'91 / > And, of course, you could automate this whole thing in a shell script. I read my mail with NextStep, but not NeXT Mail. So when mail in NeXT form arrives, here's the script I use: ~/bin/unNeXTmail: #!/bin/sh - gawk -F. ' /^begin/ { filename=$4 ".tar.Z"; print $1 filename | "uudecode"; next; } { print | "uudecode"; } END { close("uudecode"); system("chmod u+r " filename ";zcat " filename " | tar xpvf -;rm -f " filename ";open index.rtf"); } ' If you are doing this on a plain ASCII terminal, you may want to replace "open index.rtf" with "more index.rtf". Jacob -- Jacob Gore Jacob@Gore.Com boulder!gore!jacob