1993-07-08 - a simple elm script for RIPEM and PGP

Header Data

From: Tyler Yip - UnixWeenie(tm) <davros@ecst.csuchico.edu>
To: cypherpunks@toad.com
Message Hash: 8faf27342e5c048c74a6b43ef77153f6fc7e7740b1d31b35c4c1528d809f08c2
Message ID: <9307082006.AA03122@hairball.ecst.csuchico.edu>
Reply To: N/A
UTC Datetime: 1993-07-08 20:07:13 UTC
Raw Date: Thu, 8 Jul 93 13:07:13 PDT

Raw message

From: Tyler Yip - UnixWeenie(tm) <davros@ecst.csuchico.edu>
Date: Thu, 8 Jul 93 13:07:13 PDT
To: cypherpunks@toad.com
Subject: a simple elm script for RIPEM and PGP
Message-ID: <9307082006.AA03122@hairball.ecst.csuchico.edu>
MIME-Version: 1.0
Content-Type: text/plain


#!/bin/ksh
# use the elm "pipe" feature to automatically detect which type of privacy
# enchanced mail the message is under, and then automatically send the message
# with the correct options to the cipher program.
# usage from elm
#			| elm2pem
# you can also put this as the default reader in elm, but sometimes it barfs
# if you get a pgp signed message and don't have the sender's key.
umask 077
clear
cat > $HOME/.tmp/mbox.enc
PGP="BEGIN PGP"
PEM="BEGIN PRIVACY"

if grep "$PGP" $HOME/.tmp/mbox.enc > /dev/null
then
	pgp -m $HOME/.tmp/mbox.enc
elif grep "$PEM" $HOME/.tmp/mbox.enc > /dev/null
then
	ripem -d -i $HOME/.tmp/mbox.enc | more -d
else
	more $HOME/.tmp/mbox.enc
fi

rm -f $HOME/.tmp/mbox.enc





Thread