summaryrefslogtreecommitdiff
path: root/mail/pine/files/pgpdecode
blob: 0236aec9092996b60fc32fbfa6b166541a310497 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#! /bin/sh
#
# $NetBSD: pgpdecode,v 1.2 1998/08/07 11:09:46 agc Exp $
#
# ---------- 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.$$