Bug 245516

Summary: encryption preferences in addressbook not honored when sending emails
Product: [Applications] kmail Reporter: Stephan Mueller <smueller>
Component: generalAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED UNMAINTAINED    
Severity: normal CC: smueller
Priority: NOR    
Version: 1.13.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:

Description Stephan Mueller 2010-07-23 09:38:53 UTC
Version:           1.13.2 (using KDE 4.4.2) 
OS:                Linux

The addressbook is able to store encryption preferences for a particular email. You can list the GPG keys to be used by KMail when encrypting an email to that email address.

Recently (not sure when), kmail does not honor those encryption settings any more. I generated addressbook entries for mailing list email addresses with the GPG keys of the recipients added in the encryption preferences. Now, when sending an email with encryption enabled to that email address, the standard window for requesting the selection of the recipient keys pops up instead of the use of the configured keys. No keys are pre-selected in the window for requesting the selection of recipient keys.

Reproducible: Always

Steps to Reproduce:
1. add a new entry to the addressbook with, say, an unknown email address (e.g. foo@bar.com)
2. on the encryption page in the addressbook when editing the foo@bar.com entry, select some GPG recipient keys (use one or more of the ones you have in your local key list)
3. write an email to foo@bar.com and select that it should be GPG encrypted
4. hit send

Actual Results:  
the window for requesting the key pops up

Expected Results:  
KMail should have selected the keys you defined in the addressbook immediately

this thing was working in the past
Comment 1 Stephan Mueller 2010-08-13 09:56:27 UTC
After removing all akonadi resources related to addressbooks with akonadiconsole (which are not shown otherwise in systemsettings or somewhere else), and recreating a fresh resource, all works now.

The transition to akonadi however did not work.
Comment 2 Laurent Montel 2015-04-12 10:10:12 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.