[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: PGP takes long to start...
From:       Lars Knoll <knoll () mpi-hd ! mpg ! de>
Date:       1999-04-18 12:52:43
[Download RAW message or body]

On Wed, 14 Apr 1999, Sven Radej wrote:
>Hi,
>
>Few people reported that kmail contrmplates for quite a while when dealing with
>pgp messages. It doesn't lok like kmail problem.
>Try this - with pgp5:
>
>beta:~/kde/1/kdenetwork/kmail$ pgpk --version
> PGP for Personal Privacy Version:  unix50i1b
>
>Try is several times - try hitting return key very fast (i.e. press/release as
>fast as you can)
>
>PGP sometimes makes a long pause - 5-20 seconds before responding.
>During the pause pressing any key causes pgp to respond quickly.
>
>Therefore it looks that pgp expects some stdinput. Is there a way
>in kpgp.cpp to write something (anything) just to kick pgp's stdinput?
>This would speedup kmail significantly.

KPgp should (almost) always send something to stdin. For the remaining few
cases, you could try the following patch, but I'm not sure if it'll solve the
problem. 

Cheers,
Lars

 Index: kpgpbase.cpp
===================================================================
RCS file: /home/kde/kdenetwork/kmail/kpgpbase.cpp,v
retrieving revision 1.7
diff -u -r1.7 kpgpbase.cpp
--- kpgpbase.cpp        1999/01/21 20:41:43     1.7
+++ kpgpbase.cpp        1999/04/18 10:49:55
@@ -133,6 +133,8 @@
 
   if (!input.isEmpty())
     write(pin[1], input.data(), input.length());
+  else
+    write(pin[1], "\n", 1);
   close(pin[1]);
 
   if (pout[0] >= 0)                                                            

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic