Subject: Integration of pine and unix

From: Robert Duic <[email-masked]>
Date: Tue, 3 Dec 1996 00:32:46 +0100

Please let me know if one have succesfuly integrate pine with pgp on 
SCO Open Server 5.0. I have found some scripts on the net but they have
errors and some functions which they are use are not implemented in SCO
commands.

Any help or hint will be helpfull
Please send your comments directly to :

I have try to customize these utils ...

ftp://ftp.pgp.net/pub/pgp.utils/pine

						E-Mail: [email-masked]

---

From: Robert Duic <[email-masked]>
Date: Tue, 3 Dec 1996 11:24:27 +0100

> ftp://ftp.pgp.net/pub/pgp.utils/pine/pgppine.tar.gz
> 
Particualry there is a problem with -cbreak option of stty comand.
Such option doesn't exist in SCO's stty and i don't know how to
adjust the script. This is the problematic part of pgpdecode Perl script:

----------
if (! (@ARGV[0] =~ /dontask/i) ) {  # option -dontask given?
    # no -dontask:
    print STDERR "Message uses PGP, do you wish to run PGP on it? [Y/n] ";
    system("/bin/stty cbreak < /dev/tty");  # read char without pressing
RETURN
    open (IN, "</dev/tty");
    $runpgp=getc(IN);                     # read exactly one keystroke
from tty
    close IN;
    system("/bin/stty -cbreak < /dev/tty"); # reset tty to normal
-----------

---

From: [email-masked] (Jie Yuan)
Date: 3 Dec 1996 13:09:26 GMT

In article <[email-masked]>,
 
> adjust the script. This is the problematic part of pgpdecode Perl script:

How about an alternative way?  Check this URL:

	http://www.pharm.med.uc.edu/~yuan/pine_pgp.html

Cheers!

BTW, the scheme in this example does not use -cbreak option ... :-)

Jie
-- Jie Yuan, PhD - U. of Cincinnati - Dept. of Pharmacology & C.B. --
== POBox 670575, Cin., OH 45267-0575 = 513-558-2352 = x-1169 (fax) ==
== Email: [email-masked] = WWW: http://uc.edu/~yuanj = using Knews==
== PGP key: finger -l [email-masked]                      ==

---

From: [email-masked] (Dan Busarow)
Date: Tue, 3 Dec 1996 14:40:41 GMT

> adjust the script. This is the problematic part of pgpdecode Perl script:

Don't bother with that line.  Leave it out.  All that will
happen is that you have to press [Enter] after entering the
y or n.

Dan
--  
 Dan Busarow
 DPC Systems / BeachNet
 Dana Point, California

---

From: Robert Duic <[email-masked]>
Date: Wed, 4 Dec 1996 11:52:12 +0100

Thanks, it works *but* .... :(

When I am sending the mail with pine 3.94 and choose the option to pass
the outgoing mail thru filter pgpencrypt, all works fine, the mail is
corectly encrypted and sent but after that i am not able to go back to
pine menu. 

The screen freeze with note that 100% mail has been sent and
after that pine stops to response on *any* keystroke :(

The only way is to *kill* the pine proces. The same happened when I try
to reade pgp-encoded mesage. :(

On 3 Dec 1996, Jie Yuan wrote:

> 	http://www.pharm.med.uc.edu/~yuan/pine_pgp..html
> 
> Cheers!
>

---

From: Richard Gering <[email-masked]>
Date: Wed, 4 Dec 1996 16:39:55 +0100 (WET)

> to reade pgp-encoded mesage. :(

There was a signal problem in the SCO Unix version of Pine 3.94 that
caused Pine to lock up when remote commands (like filters) where being
issued. This problem was fixed in the next release by switching to System
V signal handling. 

Your choices therefore are to either switch to Pine 3.95, or to uncomment
the line that defines SYSV_SIGNALS in pine/osdep/os-sco.h and rebuild.

Hope this helps!

Kind regards,

- Richard Gering.

+-----------------------------------------------------------------------------+
| Richard Gering ([email-masked]) |      Open minds use Open Systems        |
| CI International. The Netherlands |      (which O.S. are you using?)        |
+-----------------------------------------------------------------------------+

---

From: Robert Duic <[email-masked]>
Date: Wed, 4 Dec 1996 19:35:26 +0100 (MET)

Thank you very much for your submission!

I was suspicious about pine and i have compiled pine3.95!

All works fine! I was only suprised with the largenes of the binary pine!
It is almous 4 MB large. The previous version was only 1.8 MB large.

Anyway oncemore muchos gracias !

Best regards,

						Robert Duic
						WIMAL International

						Phone:  (48 22) 47-94-62
						Fax:    (48 22) 47-94-22

---

From: [email-masked] (Steve Howie)
Date: 4 Dec 1996 20:12:52 GMT

>It is almous 4 MB large. The previous version was only 1.8 MB large.

It's only 1.7Mb. running here under HP-UX (we also have a fairly fat local
mod too). Make sure you strip the executable - that'll shave a *lot* of
size off of it if you're worried about that. Also, executable size varies
depending on the architecture of the machine you are running Pine on. 

Scotty
=========================================================================
Steve Howie                      | **Remove the .foo  when replying**       
NetNews and Listserv Admin.      | (519) 824-4120 x2556       
University of Guelph             | [email-masked]

---

From: Mike Brudenell <[email-masked]>
Date: Thu, 5 Dec 1996 10:54:01 +0000 (GMT)

Make sure that you changed the Makefiles to, for example:

	Change "-g" C compilation to "-O"
		This optimises your code instead of leaving it
		unoptimised and with lots of additional information
		for the debugger.

	Consider _not_ having the "-DDEBUG" option to the C compiler
		This omits certain debugging code within Pine
		(including the stuff which generates the
		$HOME/.pine-debugN files).

	Check your C compiler will use shared C libraries by default
		Using shared libraries can also reduce the size of
		the final executable file.

Having compiled Pine make sure you:

	strip pine

to remove unnecessary symbol table information from the executable.

Cheers,

-- 
Mike Brudenell                                         <[email-masked]>
------------------------------------------------------------------------
The Computing Service, University of York, Heslington, York, YO1 5DD, UK
Tel: +44-1904-433811  FAX: +44-1904-433740  http://www.york.ac.uk/~pmb1/

---

From: Robert Duic <[email-masked]>
Date: Wed, 4 Dec 1996 21:50:18 +0100

It was realy the matter of pine !
Version 3.95 works fine !