(*** 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)
-----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-----
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?
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
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.
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.
*** This bug has been marked as a duplicate of 33372 ***
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.