This page was mutated from its original content to reduce and change some links that could confuse integrity.
This was an html rendering of an original raw plaintext email numbered 005216.

No-Brainer elm script

Tyler Yip - UnixWeenie (tm) davros at ecst.csuchico.edu
Sat Jul 17 17:48:36 PDT 1993


#!/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






More information about the cypherpunks-legacy mailing list