Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 284066 - kmail: not decrypting gpg-encrypted mails with passphrase with pinentry < 0.7.6
Summary: kmail: not decrypting gpg-encrypted mails with passphrase with pinentry < 0.7.6
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-08 00:33 UTC by Daniel Pinto dos Santos
Modified: 2009-09-08 13:25 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Pinto dos Santos 2009-09-08 00:33:07 UTC
When trying to decrypt a gpg-encrypted email with your private (passphrase-protected) key, kmail does not ask for a passphrase but complains it is wrong.
This can be fixed by installing >=app-crypt/pinentry-0.7.6 with USE="qt4".

Probably this should be added to the kmail ebuild.

Reproducible: Always

Steps to Reproduce:
1. Install kmail and <app-crypt/pinentry-0.7.6, have a passphrase-protected gpg-key.
2. Let somebody send you and encrypted mail.
3. Try to decrypt it.

Actual Results:  
Decryption fails. Passphrase was not asked for.

Expected Results:  
Decrypting should work after asking for the passphrase.
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-08 11:55:58 UTC
Oh it decripts.
You just have to specify your gpg agent.

scarab@Ugly-Elf: ~ $ cat .gnupg/gpg-agent.conf
pinentry-program /usr/bin/pinentry-qt
no-grab
default-cache-ttl 1800

This for example shows i am using for passwords qt3 version of pinentry dialog.

Feel free to reopen if you will be still unable to make it work.
Comment 2 Daniel Pinto dos Santos 2009-09-08 12:36:32 UTC
(In reply to comment #1)
Well, I guess I should have said I was talking about kmail for kde4.
And if you want to use pinentry with that, I guess using a qt4 version is nicer.
Of course one could install a qt3 version which would require an installation of the whole qt3-stuff.
But even than, kmail should at least check for pinentry build with any qt USE-flag.
Because I just tested downgrading again, and as I have disabled the "qt3" USE-flag the same error occured.

ls /usr/bin/pinentry*                                                                                                                               
/usr/bin/pinentry  /usr/bin/pinentry-curses
Comment 3 Tomáš Chvátal (RETIRED) gentoo-dev 2009-09-08 12:41:20 UTC
That is not issue for kmail only.

It is dependant on pinentry/gnupg.

So if you set it correctly it works, otherwise you have problems.
You can use ncurses pinentry dialog, if you launch your kmail from konsole :]
But i would recomend you to use the gtk-2 one :]
Comment 4 Daniel Pinto dos Santos 2009-09-08 13:25:38 UTC
Yap, I guess your right. I was probably just surprised.
Thanks anyway, and sorry for posting invalid bugs.

Although I still thing that kde4 kmail users could be surprised by that, too.
I think I'll stick with the qt4 pinentry version. ;)

Cheers