Bug 265780 - KMail hangs when displaying message with in-line GPG signature of unknown key
Summary: KMail hangs when displaying message with in-line GPG signature of unknown key
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: general (show other bugs)
Version: 1.13.5
Platform: Ubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 10:32 UTC by Tobias Langner
Modified: 2015-04-12 10:19 UTC (History)
1 user (show)

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 Tobias Langner 2011-02-08 10:32:26 UTC
Version:           1.13.5 (using KDE 4.4.5) 
OS:                Linux

I have received an email that is signed with a GPG key that I do not yet have important to my key management and hence is unknown to KMail. If I click on this e-mail, KMail locks up completely for about one minute after which it displays the e-mail along with the signature decoration stating "Not enough information to check signature validity." Clicking on "Show Details" again locks KMail up for about one minute after which it presents the additional information "Message was signed with unknown key 0xXXXXXXX. The validity of the signature cannot be verified."

The signature has the following meta information:

Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

Displaying mails with a signature of a known key works without any problems.

A similar bug on Debian seems to have fixed about six years ago:
http://www.mail-archive.com/debian-bugs-closed@lists.debian.org/msg22162.html

Please let me know if I can provide additional information that helps to fix that bug since it is really annoying...

Reproducible: Always

Steps to Reproduce:
Click on the link with a signature of an unknown key.

Actual Results:  
More than one minute lock up of the UI.

Expected Results:  
A normal display of the mail without any lock up.

OS: Linux (x86_64) release 2.6.32-27-generic
Compiler: cc
Comment 1 tim.ruehsen 2011-03-01 11:54:28 UTC
Try to change the PGP key server. hkp://wwwkeys.eu.pgp.net showed the same behaviour for me since a while. After changing to http://keys.gnupg.net the lookup works without remarkable delay.

Somewhat hidden:
Kmail->Settings->Configure KMail->Security->Crypto Backends
Configure OpenPGP->GPG for OpenPGP
"Use keyserver at"->click on Edit
Comment 2 Tobias Langner 2011-03-01 15:56:00 UTC
Thanks tim, that seems to fix the problem. Still there should be code that deals with an unresponsive keyserver instead of locking the UI.
Comment 3 Graham Cobb 2011-08-30 22:51:32 UTC
I have also had the same problem for quite a while -- I have now started receiving sufficient number of signed messages that I went searching for a solution.

In addition to agreeing with Tobias that kmail needs to handle the unresponsive keyserver better, the default keyserver should be changed if hkp://wwwkeys.eu.pgp.net is not reliable.

When following the instructions from Tim on how to change the settings, it seemed like I should be able to add the additional server and save with two servers set.  However, if I did that, and then went back to the Edit box the second one had disappeared.  I could only get the Edit box to save one server.
Comment 4 Laurent Montel 2015-04-12 10:19:34 UTC
Thank you for taking the time to file a bug report.

KMail2 was released in 2011, and the entire code base went through significant changes. We are currently in the process of porting to Qt5 and KF5. It is unlikely that these bugs are still valid in KMail2.

We welcome you to try out KMail 2 with the KDE 4.14 release and give your feedback.