Bug 167960 - No password asked when gpg-agent not running
Summary: No password asked when gpg-agent not running
Status: RESOLVED UNMAINTAINED
Alias: None
Product: kmail
Classification: Applications
Component: encryption (show other bugs)
Version: 1.10.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
: 169561 172265 190144 191495 205477 210325 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-01 10:53 UTC by Thomas Schuetz
Modified: 2015-04-12 10:07 UTC (History)
8 users (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 Thomas Schuetz 2008-08-01 10:53:00 UTC
Version:            (using KDE 4.1.0)
Installed from:    Unlisted Binary Package
Compiler:          gcc 
OS:                Linux

Well, the short description says everything... I am used to sign my mails with gpg and if I click on "send" kmail complains about the wrong password - but kmail never asked for a password...
Kinda unfriendly...
Comment 1 Thomas McGuire 2008-08-01 20:58:06 UTC
See http://randomguy3.wordpress.com/2008/07/24/kmail-trunk-signing/ for a link to the solution.
Comment 2 Thomas Schuetz 2008-08-05 23:33:43 UTC
Thanks for the link, but it doesn't work here, I don't get a password-field :-(
But maybe it is interesting that I am using archlinux, too.
Is there anybody who uses another distri and has the same error or could tell, that there is no error like this?
Comment 3 Thomas McGuire 2008-08-22 15:38:13 UTC
*** Bug 169561 has been marked as a duplicate of this bug. ***
Comment 4 Thomas Schuetz 2008-08-30 09:55:25 UTC
The bug still exists in kde 4.1.1 in the normal arch-packages (not kdemod). gpg-agent is running, but I don't know, where it is started, looks like kde is doing this without asking me...
Comment 5 Mehrdad Momeny 2008-09-12 23:44:22 UTC
I'm using Kubuntu and have this bug! on latest kmail (1.10.1) in KDE 4.1.1
and this: http://randomguy3.wordpress.com/2008/07/24/kmail-trunk-signing/ doesn't work any thing for me!
Comment 6 Thomas McGuire 2008-10-06 18:57:09 UTC
*** Bug 172265 has been marked as a duplicate of this bug. ***
Comment 7 Raphaël Pinson 2008-12-04 11:34:45 UTC
I confirm this bug aswell, on Ubuntu 8.10 using Kmail 1.10.1. I haven't been able to sign my emails since the switch to KDE 4. Trying to set a gpg-agent didn't work either (though I suspect this is another issue).
Comment 8 engage 2008-12-24 22:53:00 UTC
I'm having this problem also. KDE 4.1.3, Mandriva 2009.0. On one computer, with a fresh install, I can't even set up key signing during Kmail configuration - I get a box saying that the keys are being searched but the search never stops. I tried using the instructions at http://randomguy3.wordpress.com/2008/07/24/kmail-trunk-signing/ but the stuff still won't work.
Comment 9 Maximilian Engelhardt 2008-12-26 01:41:46 UTC
*** This bug has been confirmed by popular vote. ***
Comment 10 Thomas McGuire 2009-01-16 14:49:59 UTC
You should report this bug to your distribution. If the KMail package is installed, the distribution should take care of pulling in the related packages like gpg-agent and setting them up properly.

Of course, the fact that KMail says "Bad passphrase" instead of a proper error message is still a bug, but I have been told this is difficult to fix.
Comment 11 Salvo "LtWorf" Tomaselli 2009-02-01 11:09:06 UTC
I've followed the tutorial. The solution works to read encrypted mails that i receive, but doesn't let me sign mails... says bad passphrase.

So i think the bug is not just problem of the distribution or a simple wrong error message shown.
Comment 12 Jaime Torres 2009-04-03 17:52:10 UTC
I've tried to reproduce this bug killing my running gpg-agent, then send an encrypted mail, and kmail sent an encrypted mail without asking the password.


Do you have runing processes like?
/usr/bin/gpg-agent --sh --daemon --write-env-file /home/user/.gnupg/agent.info /usr/bin/ssh-agent /bin/bash /etc/X11/xinit/xinitrc
kgpg -session 10d3d8da65000122107096600000039780007_1238527063_33663
Comment 13 Salvo "LtWorf" Tomaselli 2009-04-03 22:14:15 UTC
I have this:
$ ps aux | fgrep gpg
salvo    32249  0.0  0.0   3964   476 ?        Ss   22:09   0:00 gpg-agent --daemon --pinentry-program /usr/bin/pinentry-qt
salvo    32398  0.0  0.0   3928   464 ?        Ss   22:11   0:00 gpg-agent --daemon --pinentry-program /usr/bin/pinentry-qt


Anyway kmail say that i didn't insert any password. Well encrypting is easy. Signing requires password..
Comment 14 Salvo "LtWorf" Tomaselli 2009-04-03 22:16:12 UTC
I have this:
$ ps aux | fgrep gpg
salvo    32249  0.0  0.0   3964   476 ?        Ss   22:09   0:00 gpg-agent --daemon --pinentry-program /usr/bin/pinentry-qt
salvo    32398  0.0  0.0   3928   464 ?        Ss   22:11   0:00 gpg-agent --daemon --pinentry-program /usr/bin/pinentry-qt


Anyway kmail say that i didn't insert any password. Well encrypting is easy. Signing requires password..
Comment 15 Jaime Torres 2009-04-20 12:51:44 UTC
*** Bug 190144 has been marked as a duplicate of this bug. ***
Comment 16 Unknown 2009-04-21 16:36:15 UTC
I have the same problem, too - Kubuntu 9.04 RC with KDE 4.2.2.

> Of course, the fact that KMail says "Bad passphrase" instead of a proper error
> message is still a bug, but I have been told this is difficult to fix.
Does this mean it generally is not possible to have KMail sign and decrypt mails without gpg-agent? KGpg can do exactly that, it just asks me for the password itself (of course there is no caching and it asks every time I need it, but that's ok). The very first time KMail had to decrypt an encrypted mail (since I selected all mails of a folders and marked them as "Ham"), I got a password dialogue from KMail (it was definitely a KDE and not a Qt one), so something like that has to be in the sources. Since then, whenever I want to sign or decrypt a mail without gpg-agent it tells me the passphrase is wrong.
If it is indeed not meant to work without gpg-agent, I'll add that as wishlist entry.

Btw, is it normal that the configuration window of the "OpenPGP" crypto module in KMail is just empty?
Comment 17 Krisztián Kádár-Németh 2009-05-06 14:39:30 UTC
*** Bug 191495 has been marked as a duplicate of this bug. ***
Comment 18 Christophe Marin 2009-08-28 13:41:44 UTC
*** Bug 205477 has been marked as a duplicate of this bug. ***
Comment 19 Jaime Torres 2009-10-13 11:36:20 UTC
*** Bug 210325 has been marked as a duplicate of this bug. ***
Comment 20 kdebug 2011-02-10 01:38:15 UTC
I just experienced this bug in debian squeeze and aptosid, but luckily I found a workaround in this debian bug report: 

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=523354

Basically you have to open kgpg set it to use gpg-agent, logout and login again, and then kmail will ask for the pass phrase. you may have to install pinentry-gt4.

Still I do experience some annoying behaviour from kmail, it keeps showing a windows asking for the keys and encrypt options (ignoring the settings), then ask to add my recipient to the address book, then ask for the passphrase.
Comment 21 Laurent Montel 2015-04-12 10:07:14 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.