Bug 266380

Summary: Kmail asks for gpg key password each time mail is signed
Product: [Applications] kmail Reporter: jack <samtuke>
Component: encryptionAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: 1.13.5   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:

Description jack 2011-02-15 14:44:15 UTC
Version:           1.13.5 (using KDE 4.5.5) 
OS:                Linux

A qt dialogue appears for pin entry in order to sign emails with my pgp key most times I send a signed email. It appears that kwallet isn't being used.

Incidentally (may not be related) kwallet periodically asks me for my wallet password again, about every 30-60 mins.

Reproducible: Sometimes

Steps to Reproduce:
enable auto mail sigining with a gpg key, send emails over a long period of time, perhaps leaving 30 mins between sending if necessary.

Actual Results:  
dialogue popup requesting key password

Expected Results:  
password for key is silently retrieved from kwallet, where its been stored already

Kontact is awesome.
Comment 1 Christophe Marin 2011-02-15 15:33:28 UTC
That's the expected behaviour.

There's no interest in signing mail if you don't actually sign.
Comment 2 jack 2011-02-15 15:50:28 UTC
What?

The point is to actually sign, but to retrieve the password from kwallet when doing so.

As I recall this is how kmail used to work before this bug appeared.

Users shouldn't have to type the password for their GPG key each time they send a signed mail, and they didn't use to have to.
Comment 3 Christophe Marin 2011-02-15 17:52:41 UTC
The secret passphrase was never stored in kwallet. (hopefully)
This most likely means your gnupg settings were changed.
Comment 4 Christophe Marin 2011-02-15 17:54:54 UTC
hint: make sure 'ignore-cache-for-signing' wasn't added to your gpg-agent.conf