Subject: Re: PGP & PINE

From: [email-masked] (Chris)
Date: 2 Dec 1995 02:30:42 GMT

Alex Minh-Hon Chau ([email-masked]) wrote:
: Hi there... I haven't seen any messages posted that says anything about 
: pine and pgp... How do you get pgp hooked up to pine? I have this script 
: that intercepts the editor before (elm) receives control. 
: I'm sure something like that can be done for pine right? Thanks...

I've cobbled together a little script that I use to sign stuff.  Basically, you
enable an alternate editor, and then set the alternate editor to be the script.

The script fires up pico (or your favorite editor; I use pico since that's the
pine editor ;-) and you compose the letter.  Then, when you exit, it asks if
you want to sign it and if you want to digitally sign it.  If so, it adds your
.sig and your pgp signature.

It's fairly short, so I won't bother uuencoding it.

sign:
<SNIP HERE>
#!/bin/sh
#Edit the following to suit your needs.
PATH_TO_SIG=$HOME/.mail.signature
PINE_EDIT='pico -z -t'
#Everything else is pretty much fixed.  Only muck around with it if you
#know what you're doing.
$PINE_EDIT $1
clear
echo "Add your signature to this? [Y/n] " 
read SIG
echo " "
echo "Digitally sign this? [Y/n] "
read PGP

if [ "$PGP" = "y" ]
	then 
		pgp -sat $1
		mv $1.asc $1
fi

if [ "$PGP" = "Y" ]
	then 
		pgp -sat $1
		mv $1.asc $1
fi

if [ "$PGP" = "" ]
	then 
		pgp -sat $1
		mv $1.asc $1
fi

if [ "$SIG" = "y" ]
	then 
		echo " " >> $1
		cat $PATH_TO_SIG >> $1
fi

if [ "$SIG" = "Y" ]
	then 
		echo " " >> $1
		cat $PATH_TO_SIG >> $1
fi

if [ "$SIG" = "" ]
	then 
		echo " " >> $1
		cat $PATH_TO_SIG >> $1
fi

<SNIP HERE>

Hope this helps.

chris
--
Chris Ricker : [email-masked] : The Georgia Institute o' Technology
"I got a threshold, Jules.  I got a threshold for the abuse I'll take.  And
you're crossing it.  I'm a race car and you got me in the red.  Redline
7000, that's where you are.  Just know, it's...dangerous to be drivin' a 
race car when it's in the red.  It could blow."  --Vincent Vega--

---

From: Alex Minh-Hon Chau <[email-masked]>
Date: Fri, 1 Dec 1995 15:37:18 -0700

Hi there... I haven't seen any messages posted that says anything about 
pine and pgp... How do you get pgp hooked up to pine? I have this script 
that intercepts the editor before (elm) receives control. 
I'm sure something like that can be done for pine right? Thanks...
Another thing...

                     <> >
                    <<>>  >
                 <<< <>>>> >>>
               _>><<<<>>>>>> >>> >>       
      \|/      \<<<<<  < >>>>>>>>>            
 ------*--===<=<<         > <<<<<< << <<                Big Al
      /|\     << ()   _/    < <<<<<<<<<<<      [email-masked]
             <  \    /  \      >>>>>>> >>>>>>        ____
                 |  |   |       < < <<<<->>->>---___((- \\\\     \\\ \
                 o_|\  /              <<< <<           \  \\\\ \ \\\\\\\\
                      |  _/                             \ \\\\\\\\\\\\\\\\\
                      | /                       /       /  \\ \\\\\\\\\  \ \\
               ______/\/     /                 /       /          \\\ \\
             / _ _____/    _/         ________(       /(
            / / / ________/`---------'         \    (\_ \_
           /_/  \ \                             \   \   \_\
          ||     \ \                             )  /    | |
           \|      \\_                          / /      | |
                     \|                        / /        ||
                                             _//          |\
                                            /_|           |/ 

 $$$$$$$$  $$$$   $$$$$$$$ $$$$$$$ $$$$$$$$ $$$$$$$ $$$$$$$ $$$$$$$$  $$$$

---

From: [email-masked] (Dean Pentcheff)
Date: 3 Dec 1995 22:01:39 -0500

>I'm sure something like that can be done for pine right? Thanks...
[23-line signature deleted.  5 lines are widely considered sufficient.]

There is a csh script that does the job.  For info:

	finger [email-masked]

For the script itself, send blank e-mail to:

	[email-masked]

with Subject: mkpgp

-Dean
-- 
N. Dean Pentcheff   <[email-masked]>   WWW: http://tbone.biol.sc.edu/~dean/
Biological Sciences, Univ. of South Carolina, Columbia SC 29208 (803-777-3936)
PGP ID=768/22A1A015 Keyprint=2D 53 87 53 72 4A F2 83  A0 BF CB C0 D1 0E 76 C0 
Get PGP keys and information with the command: "finger [email-masked]"