1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-31 21:57:12 +00:00
freebsd-ports/mail/pine4/files/pgpdecode
Satoshi Asami ae0e6d258c Upgrade, 3.91 -> 3.95. This version is supposed to fix a lot of bugs.
Submitted by:	"Matthew N. Dodd" <winter@jurai.net>
1996-07-17 03:58:38 +00:00

15 lines
510 B
Bash

#! /bin/sh
# ---------- pgpdecode ---------
# 21.03.96 Roland Rosenfeld <roland@spinnaker.rhein.de>
#
# Sun Mar 24 12:01:21 MET 1996 Andreas Klemm <andreas@knobel.gun.de>
# The tmp files in the original version were world readable for
# the short time of unpacking, setting suitable umask prevents this
#
umask 077
trap "rm -f /tmp/pgpdecode.???.$$; exit" 0 1 2 15
(pgp -f > /tmp/pgpdecode.txt.$$) 2>&1 | tee /tmp/pgpdecode.pgp.$$ 1>&2
sed -e 's/^/| /' /tmp/pgpdecode.pgp.$$
echo " "
cat /tmp/pgpdecode.txt.$$