KMail doesn't decrypt pgp encrypted messages

Christian Mueller cmueller at gmx.de
Mon Feb 7 22:50:25 GMT 2005


Am Montag, 7. Februar 2005 23:30 schrieb Steve Turnbull:
> Hi
> 
> I'm running Debian SID, KDE 3.3 and Kmail 1.7.2
> 
> I am having problems getting KMail / Kontact to decrypt encrypted messages. I 
> have my keys setup successfully (if I try opening the email in Evolution it 
> asks for a passphrase and opens the message)
> 
> I can get KMail to work if I run eval "$(gpg-agent --daemon)" from the command 
> line, and then run kmail from the same command line. When Kmail starts, it 
> asks for a passphrase when I click on an encrypted email.
> 
> If I just run KMail as normal from the KDE menu, it doesn't decrypt the 
> message properly and I get this message;
> 
> Encrypted message (decryption not possible)
> Reason: Crypto plug-in "openpgp" could not decrypt the data.
> Error: Bad passphrase
> 
> These are the steps I've taken;
> 
> added "deb http://smurf.noris.de/code/debian/ experimental smurf" to my apt 
> sources list and installed nupg2, gnupg-agent, dirmngr, kleopatra gpgsm.
> 
> Followed instructions at http://kmail.kde.org/kmail-pgpmime-15-16-howto.html
> 
> So, how do I get the gpg-agent to run when I startup KMail from the menu?
> 
> Thanks
> Steve


Try this howto, it seems to be for KMail >= 1.7: 
http://kmail.kde.org/kmail-pgpmime-howto.html

Especially the following is important: 
"Starting with KDE-3.3 you can add the gpg-agent command in 
~/.kde/env/gpgagent.sh (the filename doesn't matter). 
The contents of ~/.kde/env/ is sourced by startkde.

As you have noticed, the gpg-agent command must have been executed
in the environment kmail is started from.  The above makes sure 
it is, and only once per KDE session.  

Cheers, 
Christian.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde/attachments/20050207/1b59a9d8/attachment.sig>
-------------- next part --------------
___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.


More information about the kde mailing list