Bug 30269 - KMail freezes while GnuPG accesses a key server
Summary: KMail freezes while GnuPG accesses a key server
Status: RESOLVED DUPLICATE of bug 33372
Alias: None
Product: kmail
Classification: Applications
Component: encryption (show other bugs)
Version: 1.2
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-08-04 22:48 UTC by Jan Spitalnik
Modified: 2007-09-14 12:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Spitalnik 2001-08-04 22:45:56 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           kmail
Version:           1.2 (using KDE 2.1.2 )
Severity:          normal
Installed from:    Debian Package 4:2.1.2-2 (testing/unstable)
Compiler:          gcc version 2.95.4 20010319 (Debian prerelease)
OS:                Linux 2.4.4 i686
OS/Compiler notes: 

kmail freezes while gpg downloads public key from PKS server. this happens when you try to view some message that's signed with pubkey that you don't have in your ring

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 Ingo Kl 2001-08-05 11:37:52 UTC
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sunday 5. August 2001 00:45 spitalnik@penguin.cz wrote:
> kmail freezes while gpg downloads public key from PKS server. this
> happens when you try to view some message that's signed with pubkey
> that you don't have in your ring

This is caused by two things:
1. KMail currently waits (i.e. freezes) until GnuPG returns. This will 
hopefully change soon.
2. If you have defined a keyserver in GnuPG's config file 
(~/.gnupg/options) then GnuPG automatically tries to download missing 
public keys from this keyserver. If you don't want this to happen 
please either remove the keyserver option from GnuPG's config file or 
add "no-auto-key-retrieve" to GnuPG's config file.

Regards
Ingo
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7bTAQGnR+RTDgudgRAgPdAJ0RX58KV4ahMmM3553dm0FY5NuafACgiDST
MQa2OLMeL3Eci5KiW3bgr9U=
=nKV0
-----END PGP SIGNATURE-----
Comment 2 Germain CHAZOT 2003-05-15 13:15:50 UTC
Subject: Re: KMail freezes while GnuPG accesses a key server

Well putting no-auto-key-retrieve in gpg.conf solves the problem.
But when the key IS on the server, Kmail crashes anyway. Do you think 
it is a bug in the way Kmail/OpenPGP Plugin calls gpg for key 
retrieval or a bug for gpg itself?

Comment 3 Ingo Klöcker 2003-05-17 21:32:24 UTC
Subject: Re:  KMail freezes while GnuPG accesses a key server

On Thursday 15 May 2003 13:15, Germain CHAZOT wrote:
> Well putting no-auto-key-retrieve in gpg.conf solves the problem.
> But when the key IS on the server, Kmail crashes anyway. Do you think
> it is a bug in the way Kmail/OpenPGP Plugin calls gpg for key
> retrieval or a bug for gpg itself?

KMail crashes? Please provide the backtrace. Is the crash reproducible?

Regards,
Ingo

Comment 4 Germain CHAZOT 2003-05-17 23:00:06 UTC
Subject: Re: KMail freezes while GnuPG accesses a key server

Sorry I didn't use the correct word.
Kmail "freezes" when I go on a mail that is signed with a key that is
not in my Keyring. In fact that is not Kmail that freezes but gpg,
which is called by Kmail's OpenPGP plugin. I found a solution to
solve the problem: I removed auto-key retrieve from my gpg.conf and
replaced it by no-auto-key retrieve. I didn't try this option from
the command-line gpg but retrieving keys with "gpg --recv-keys" works
fine. The freezing starts when I open the mail (or if Kmail opens it
on a new mail incoming or when I open a subdir). If it comes I found
a solution to stop it: I kill the gpg process kmail started and kmail
unfreezes. It seems there is a timeout in gpg since kmail unfreezes
itself after 4 or 5 minutes.
But it is still disapointing since I have to gpg --recv-keys for each
new message I receive for the signature to be checked. That takes
much time since I receive some debian mailing lists.
Comment 5 Ingo Klöcker 2003-05-18 21:32:11 UTC
Subject: Re:  KMail freezes while GnuPG accesses a key server

Try the following:
Save a message which is signed with an unknown key. Re-add the 
auto-key-retrieve option to your gpg.conf. Now run 'gpg <msg.txt' were 
msg.txt is the file you saved the message in. If gpg freezes then you 
either found a bug in gpg or you are using a very slow keyserver. Try 
using another keyserver. At http://jharris.cjb.net/keyserver.html 
you'll find an up-to-date list of keyservers.

Comment 6 Marc Mutz 2003-10-05 04:42:51 UTC

*** This bug has been marked as a duplicate of 33372 ***
Comment 7 Erik Schnetter 2004-04-18 15:38:53 UTC
Kmail also freezes for quite some time (up to about a minute) when gpg does not access a key server.  It is probably just that gpg is very slow when accessing its key chain when this key chain is large.  The only remedy I know is to wait.  I will vote for this bug in the hope that decoupling kmail from gpg happens soonish.