[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#595359: kmail: preferred OpenPGP encryption key ignored when sending encrypted e-mail

Package: kmail
Version: 4:4.4.5-1
Severity: normal
Tags: upstream

Preferred GPG keys are completely ignored when encrypting e-mail using GnuPG in
kmail. The problem can be traced back to an akonadi search for the given
"e-mail" returning no result despite the fact that this e-mail address is in
the addressbook. Akonadi searches for e.g. names are fine.

The simplest way to reproduce the problem I could figure out is as follows:


a) Send an e-mail to some made-up contact, e.g. x@y.com; select GnuPG
b) KMail will ask you what key to choose, pick one and check "Remember choice"
c) KMail will ask you for a name for the new contact, pick one e.g. "XY"
d) KMail will ask you where to store the contact, pick your default address


g) Observe that your default address book now indeed contains a contact XY for
the e-mail address x@y.com with the GnuPG key assigned you just picked


g) Repeat a)


KMail knows which key to chose and will do so automatically


Kmail performs the steps mentioned in b)-d)

I also reported the bug upstream at https://bugs.kde.org/show_bug.cgi?id=247229
so far with no reaction from upstream. I provide a bit more information about
the likely cause of the problem in the upstream bug report.

-- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kmail depends on:
ii  kdebase-runtime     4:4.4.5-1            runtime components from the offici
ii  kdepim-runtime      4:4.4.4-1            Runtime components for akonadi-kde
ii  kdepimlibs-kio-plug 4:4.4.5-1            kio slaves used by KDE PIM applica
ii  libakonadi-contact4 4:4.4.5-1            library for using the Akonadi PIM 
ii  libakonadi-kde4     4:4.4.5-1            library for using the Akonadi PIM 
ii  libc6               2.11.2-2             Embedded GNU C Library: Shared lib
ii  libgcc1             1:4.4.4-8            GCC support library
ii  libgpgme++2         4:4.4.5-1            c++ wrapper library for gpgme
ii  libkabc4            4:4.4.5-1            library for handling address book 
ii  libkcal4            4:4.4.5-1            library for handling calendar data
ii  libkde3support4     4:4.4.5-1            the KDE 3 Support Library for the 
ii  libkdecore5         4:4.4.5-1            the KDE Platform Core Library
ii  libkdepim4          4:4.4.5-1            KDE PIM library
ii  libkdeui5           4:4.4.5-1            the KDE Platform User Interface Li
ii  libkhtml5           4:4.4.5-1            the KHTML Web Content Rendering En
ii  libkimap4           4:4.4.5-1            library for handling IMAP data
ii  libkio5             4:4.4.5-1            the Network-enabled File Managemen
ii  libkldap4           4:4.4.5-1            library for accessing LDAP
ii  libkleo4            4:4.4.5-1            certificate based crypto library
ii  libkmime4           4:4.4.5-1            library for handling MIME data
ii  libknotifyconfig4   4:4.4.5-1            library for configuring KDE Notifi
ii  libkontactinterface 4:4.4.5-1            Kontact interface library
ii  libkparts4          4:4.4.5-1            the Framework for the KDE Platform
ii  libkpgp4            4:4.4.5-1            gpg based crypto library
ii  libkpimidentities4  4:4.4.5-1            library for managing user identiti
ii  libkpimtextedit4    4:4.4.5-1            library that provides a textedit w
ii  libkpimutils4       4:4.4.5-1            library for dealing with email add
ii  libkresources4      4:4.4.5-1            the KDE Resource framework library
ii  libksieve4          4:4.4.5-1            mail/news message filtering librar
ii  libktnef4           4:4.4.5-1            library for handling TNEF data
ii  libkutils4          4:4.4.5-1            various utility classes for the KD
ii  libmailtransport4   4:4.4.5-1            mail transport service library
ii  libmessagecore4     4:4.4.5-1            message core library
ii  libmessagelist4     4:4.4.5-1            message list library
ii  libmimelib4         4:4.4.5-1            MIME library
ii  libnepomuk4         4:4.4.5-1            the Nepomuk Meta Data Library
ii  libphonon4          4:4.6.0really4.4.2-1 the core library of the Phonon mul
ii  libqt4-dbus         4:4.6.3-1            Qt 4 D-Bus module
ii  libqt4-network      4:4.6.3-1            Qt 4 network module
ii  libqt4-qt3support   4:4.6.3-1            Qt 3 compatibility library for Qt 
ii  libqt4-xml          4:4.6.3-1            Qt 4 XML module
ii  libqtcore4          4:4.6.3-1            Qt 4 core module
ii  libqtgui4           4:4.6.3-1            Qt 4 GUI module
ii  libstdc++6          4.4.4-8              The GNU Standard C++ Library v3
ii  libthreadweaver4    4:4.4.5-1            the ThreadWeaver Library for the K
ii  perl                5.10.1-14            Larry Wall's Practical Extraction 
ii  phonon              4:4.6.0really4.4.2-1 metapackage for the Phonon multime

Versions of packages kmail recommends:
ii  gnupg-agent                   2.0.14-2   GNU privacy guard - password agent
ii  gnupg2                        2.0.14-2   GNU privacy guard - a free PGP rep
ii  pinentry-gtk2 [pinentry-x11]  0.8.0-1    GTK+-2-based PIN or pass-phrase en
ii  pinentry-qt4 [pinentry-x11]   0.8.0-1    Qt-4-based PIN or pass-phrase entr

Versions of packages kmail suggests:
pn  clamav | f-prot-installer     <none>     (no description available)
ii  kaddressbook                  4:4.4.5-1  address book and contact data mana
ii  kleopatra                     4:4.4.5-1  certificate Manager
ii  procmail                      3.22-19    Versatile e-mail processor
pn  spamassassin | bogofilter | a <none>     (no description available)

-- no debconf information

Reply to: