Bug 3337 - pgp plugin does not work with gnupg 2.1.0
Summary: pgp plugin does not work with gnupg 2.1.0
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Plugins (show other bugs)
Version: 3.11.1
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2014-11-24 20:30 UTC by Hanno Boeck
Modified: 2014-12-28 00:18 UTC (History)
1 user (show)

See Also:


Attachments

Description Hanno Boeck 2014-11-24 20:30:42 UTC
GnuPG recently released version 2.1.0. It seems claws-mail does not work with it.

When I try to send a message it tells me
"Could not queue message for sending:

Signature failed: Data signing failed, General error"

When I want to decrypt a message I get:
"Couldn't decrypt: Decryption failed"

Tried with the latest 3.11.1 version of claws-mail.
Comment 1 Paul 2014-11-24 20:33:31 UTC
That'll be a problem with gnupg-agent, gnupg 2.1 uses a fixed socket path ~/.gnupg/S.gpg-agent
Comment 2 Hanno Boeck 2014-11-26 00:48:55 UTC
I can't really follow. Why have you marked the bug invalid?
Should it work? Is there any option that can be changed to make it work? Do you consider this a bug in gpg itself? (is it reported?)
Comment 3 Paul 2014-11-26 05:48:04 UTC
This problem already came up. I am informed that with GnuPG 2.1 GPG_AGENT_INFO is ignored and it instead uses a fixed location:  ~/.gnupg/S.gpg-agent

Therefore there is no bug, (hence INVALID), but GnuPG 2.1 requires you to adjust your habits with regard to your use of GnuPG-agent.
Comment 5 Robby Workman 2014-12-28 00:18:43 UTC
But src/plugins/pgpcore at least depends on existence of GPG_AGENT_INFO to allow use of gpg-agent for passhprase handling, and since gnupg-2.1+ doesn't set that variable, it can't work as handled within claws-mail.

After more looking, a casual grep of sources shows these files affected:
src/plugins/pgpcore/prefs_gpg.c
src/plugins/pgpcore/sgpgme.c
src/plugins/pgpmime/pgpmime.c
src/plugins/pgpinline/pgpinline.c

The good news is that setting GPG_AGENT_INFO to $HOME/.gnupg/S.gpg-agent makes claws work again, but I'd argue that users shouldn't have to do this.

Note You need to log in before you can comment on or make changes to this bug.