#!/bin/sh # @(#) reverse of maildir command # decode message (do not need to edit it) and make MAIL.tar.Z.key NAME=${1:-'XX'} uudecode $NAME # just to make sure the file is readable chmod u+r MAIL.tar.Z.key # decrypt, uncompress, and place into MAIL.tar # put the encryption password in where the string KEY appears # crypt KEY MAIL.tar crypt MAIL.tar # check table of contents of tar file and # CAREFULLY NOTE WHAT FILENAMES IT WILL CREATE tar tvf MAIL.tar echo "CONTINUE?" read JUNKO # MOVE MAIL.tar into a temporary or appropriate directory if test "$JUNKO" = 'y' then tar xvf MAIL.tar &&rm -f MAIL.tar* fi exit