Subject: Re: PGP with Pine ?

From: [email-masked] (Roland Rosenfeld)
Date: 7 Nov 1996 21:50:22 +0100

Cedric Maion <[email-masked]> wrote:

> I was wondering if Pine could easily be used with PGP. That would be
> a great and useful feature !

On http://www.rhein.de/~roland/pgppine/ you will find some filter
scripts to integrate PGP into pine.  Have fun with them :-)

Ciao

        Roland

-- 
  * Internet: [email-masked] * Fido: 2:2450/42 *

---

From: [email-masked] (Richard Braun)
Date: Mon, 18 Nov 1996 22:36:48 -0500

In article <[email-masked]>,
[email-masked] (Rick Hewett) wrote:

> Recently [email-masked] (Chris Dent) wrote:
> > things. One of them is a link to inegrating Pine and PGP:
> > 
> >   http://www.pharm.med.uc.edu/~yuan/pine_pgp.html
> > 
> > I followed these instructions to get myself setup and it works very well.
> 
> The only niggle I have with this setup (which is _much_ better than any of
> the alternatives I've come across) is that there seems to be no easy way
> of viewing or exporting the raw PGP message without first reversing step

If anyone is interested, I hacked the above mentioned script because
I was on a _s_l_o_w_ machine and if someone wanted to ruin my day they
could just  send me a few encrypted email.  This gives you the option
to cancel out of the decryption.  Also I changed the filter by removing 
the "_LEADING" because a few messages I received had some extra text in
front of the pgp message.  The only thing I would like to see improved in
such a viewing filter would be for any unencrypted text to be displayed 
along with the decrypted message.

===========================================================================
#!/bin/sh

# The Bourne shell built-in echo does not understand the "-n" option,
# so use the standalone ucb echo, usually in /usr/ucb/echo.

/usr/ucb/echo -n "Message is PGP encrypted, do you wish to decrypt? [y or n] " >
/dev/tty
read inq </dev/tty

if [ "$inq" ] ; then
 case "$inq" in
   y|Y|yes|YES)
      echo "*** [Message not shown] ***"
      echo
      pgp -f
      echo "Press [RETURN] to continue" >/dev/tty
      read junk </dev/tty
      ;;
   *)
      cat
      ;;
  esac
else
  cat
fi

exit 0

# Comments from J. Yuan  5/1/96
# Modified by R. Braun 7/30/96
# This script is obtained from comp.mail.pine newsgroup.  It is
# written by someone, but not me.  I claim no credit or responsibility.
#
# To use it for Pine 3.92 or newer version, you should:
#       (1) Make it executable (chmod +x filename).
#       (2) Launch Pine, and get into the Setup-Configuration menu.
#       (3) Go down the menu 3 pages and find the display-filter option.
#       (4) Add Value: _LEADING("-----BEGIN PGP")_ ~/.pgp/display,
#         ** Just use "-----BEGIN PGP" ~/.pgp/display for better results.
#           where "~/.pgp/display" is the path to this script.
#
# Exit from the configuration menu and confirm the change.  That's it.
#
# You should see the complete dialog with PGP before a PGP mail is
# decrypted and that is the whole purpose of using this script.
# If you have more questions, please feel free to email me at
# "[email-masked]".  Have a good day!
-- 
Richard Braun         TUNL/Dept of Physics
[email-masked]   Duke University