KMail does not decrypt mails encrypted with gpg and sent as MIME-type "multipart/encrypted"

Bug #105950 reported by Rastloser
10
Affects Status Importance Assigned to Milestone
kdepim (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Binary package hint: kmail

One of the latest Feisty upgrades (I can't find out which one anymore) re-introduced the problem from bug 15485:

KMail does not ask for a passphrase when it should decode a GPG encrypted message sent as MIME-type "multipart/encrypted". Instead, the blue "could not decrypt the mail - reason: wrong passphrase" message is displayed.

This does not happen with encrypted messages delivered with other MIME-types nor with signed messages.

For reference, here is a sample message that triggers the bug for me, stripped to the necessary part:

===========================
Return-Path: <ANONYMIZED.de>
Date: Thu, 12 Apr 2007 18:36:35 +0200
From: ANONYMIZED
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: ANONYMIZED
Subject: Encryption
X-Enigmail-Version: 0.94.2.0
Content-Type: multipart/encrypted;
  protocol="application/pgp-encrypted";
  boundary="------------enigD51530FB35EC089E0A70B046"
X-KMail-EncryptionState:
X-KMail-SignatureState:
X-KMail-MDN-Sent:

This is an OpenPGP/MIME encrypted message (RFC 2440 and 3156)
--------------enigD51530FB35EC089E0A70B046
Content-Type: application/pgp-encrypted
Content-Description: PGP/MIME version identification

Version: 1

--------------enigD51530FB35EC089E0A70B046
Content-Type: application/octet-stream; name="encrypted.asc"
Content-Description: OpenPGP encrypted message
Content-Disposition: inline; filename="encrypted.asc"

-----BEGIN PGP MESSAGE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

hQQOA6h7q9iiE/9SEA/+IKb/h3qTVXAt/lSbWgOUO1kRKDWoGLFi7orv4vU3eCsA
[... STRIPPED FOR READABILITY...]
-----END PGP MESSAGE-----

--------------enigD51530FB35EC089E0A70B046--

===========================

And here is the text of KMail's error message, unfortunately, I only have access to the German version:

Verschlüsselte Nachricht (keine Entschlüsselung möglich)
Grund: Das Krypto-Modul "openpgp" kann die Daten nicht entschlüsseln.
Fehler: Falsche Passphrase
  Nicht entschlüsselbare Daten nicht angezeigt.
  Ende der verschlüsselten Nachricht

Revision history for this message
Daniel Hahler (blueyed) wrote :

Bug 15485 seems to be about missing dependencies/programs (pinentry-qt).

You don't need your private key for displaying signed messages (as far as I can see), so it's normal that it works.

What other MIME types are there (apart from "multipart/encrypted"), where you get asked for your passphrase?

I'll send you a private email, so we can try to narrow this down.

Revision history for this message
Rastloser (rastloser) wrote :

Thanks for contacting me! Just in case others are reading this, too: I only quoted Bug 15485 because to the user, the behaviour looks the same. I have, however, neither pinentry-qt nor a similar tool like gpg-agent installed.

I don't know of any other MIME types that work correctly, currently.

Revision history for this message
Rich Johnson (nixternal) wrote :

I believe this is the same as some other bugs that are reported concerning GnuPG and KMail. Are you still experiencing this? If so, can your provide further information possibly (ie, running gnupg-agent)? Do not be surprised if this gets merged in with the other GPG reports. It doesn't mean yours is closed, but it will be grouped so gathering all of the required information is easy. Thanks

Changed in kdepim:
status: Unconfirmed → Needs Info
Revision history for this message
Mojak (wwwobda) wrote :

Hello. maybe this link can help. Had the same problem under Kubuntu 7.04:

http://zerlinna.blogweb.de/archives/61-Get-GPG-Decryption-working-within-Kmail.html

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for kdepim (Ubuntu) because there has been no activity for 60 days.]

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.