Bug 3199 - Decryption with GPG plugin fails
Summary: Decryption with GPG plugin fails
Status: RESOLVED INVALID
Alias: None
Product: Claws Mail (GTK 2)
Classification: Unclassified
Component: Other (show other bugs)
Version: 3.9.3
Hardware: PC Linux
: P3 normal
Assignee: users
URL:
Depends on:
Blocks:
 
Reported: 2014-05-31 10:34 UTC by mikesvl
Modified: 2014-06-01 11:13 UTC (History)
0 users

See Also:


Attachments
settings (21.62 KB, image/png)
2014-06-01 10:04 UTC, mikesvl
no flags Details

Description mikesvl 2014-05-31 10:34:55 UTC
The encrypted email cannot be decrypted.
All requred plugins are installed PGP/MIME, PGP/Core PGP/inline

However, other functions work fine.
Claws is able to sign / to read signature
Claws is also able to encrypt (and the recipients can decrypt the email)

The encryption was made by 2 different softwares (enigmail/thunderbird/windows and add-on (mail-envelop) under firefox/windows).

Only the decryption by claws fails (with GPG/MIME or PGP/inline)

Keys are managed by seahorse / the keys are available and valid.


Debian Wheezy amd64 + mate 1.6 + claws 3.9.3 (backports)
GnuPG 1.4.12.7+deb7u3
Comment 1 Paul 2014-05-31 10:50:47 UTC
Decryption works. The problem must be particular to your setup. Normally problems such as these are related to an improperly configured gpg-agent.

You need to tell us more. Start by running `claws-mail --debug` and pasting the relevant debug output here, (i.e. at the point you try to decrypt)
Comment 2 mikesvl 2014-05-31 12:05:53 UTC
hereafter the debug output

 message/rfc822 (offset:0 length:3340 encoding: 6)
        multipart/encrypted (offset:1292 length:2048 encoding: 6)
            application/pgp-encrypted (offset:1484 length:11 encoding: 6)
            application/octet-stream (offset:1695 length:1606 encoding: 6)
messageview.c:1353:decrypting message part
sgpgme.c:390:tmp file /home/michael/.claws-mail/tmp/tmpfile.00000003
sgpgme.c:396:data 0x7fff88d0b9a8 (1695 1606)
prefs_gpg.c:530:set GPG_AGENT_INFO=/tmp/keyring-JTGkQu/gpg:0:1
sgpgme.c:436:can't decrypt (Échec de déchiffrage)
pgpmime.c:342:plain is null!
textview.c:722:TIMING textview_add_part : 0s000ms
textview.c:693:TIMING textview_add_part : 0s000ms
textview.c:828:TIMING textview_add_part : 0s000ms
textview.c:845:TIMING recursive_add_parts : 0s000ms
textview.c:828:TIMING textview_add_part : 0s000ms
textview.c:845:TIMING recursive_add_parts : 0s000ms
textview.c:891:TIMING recursive_add_parts : 0s001ms
textview.c:891:TIMING recursive_add_parts : 0s001ms
textview.c:649:TIMING textview_show_part : 0s002ms
summaryview.c:3640:TIMING summary_display_msg_full : 0s056ms
Comment 3 Paul 2014-05-31 12:14:30 UTC
do you see the passphrase dialogue at all?
Comment 4 mikesvl 2014-05-31 12:34:31 UTC
No passphrase dialogue appears at any time
Only when I send a message
Comment 5 mikesvl 2014-05-31 12:53:50 UTC
Additional information.

The passphrase dialogue apears when I read an encrypted message in "sent" (a message sent by myself).
But the dialogue message doesn't appear when I read an incoming message.
Comment 6 Michael Schwendt 2014-05-31 13:27:15 UTC
Which pinentry GUI is installed on your machine?

  $ pinentry<TAB><TAB>
  pinentry         pinentry-curses  pinentry-gtk     pinentry-gtk-2

We've had similar symptoms at Fedora, where pinentry-qt was installed (via a generic dependency on a pinentry-gui capability) but not showing up. Please see the details at https://bugzilla.redhat.com/981923
Our work-around has been to depend on pinentry-gtk directly again ( https://bugzilla.redhat.com/587326#c5 ).
Comment 7 mikesvl 2014-05-31 13:54:53 UTC
No pinentry GUI is installed on my machine
Comment 8 Michael Schwendt 2014-06-01 09:04:43 UTC
$ man gpg-agent
[...]
       Please  make  sure  that  a  proper pinentry program has been installed
[...]
Comment 9 mikesvl 2014-06-01 09:29:13 UTC
I've just installed gnupg-agent, but no change.

gnupg-agent
pinentry-gtk2

I don't understand, I used Seahorse to manage keys.
The passphrase appears when I send a message.
Comment 10 Michael Schwendt 2014-06-01 09:50:00 UTC
What are your settings in Preferences > Plugins > GPG?
Comment 11 mikesvl 2014-06-01 10:04:44 UTC
Created attachment 1374 [details]
settings
Comment 12 mikesvl 2014-06-01 10:05:58 UTC
See attachment.
Comment 13 Michael Schwendt 2014-06-01 11:00:04 UTC
It would be better to move this to the mailing-list.

Be a little bit creative when doing trouble-shooting.

Uncheck the "Use gpg-agent" box. What does that change?

How did you configure gpg-agent instead of seahorse-agent?
Which version of Seahorse and seahorse-agent is it?

If you store the encrypted message on local disk, open a terminal, then run "gpg filename", what do you get? With a properly configured gpg-agent, you would get a graphical password dialog, too.

Install a lightweight window manager, such as Openbox, as an alternative for testing with.
Comment 14 Paul 2014-06-01 11:13:47 UTC
(In reply to comment #13)
> It would be better to move this to the mailing-list.

Certainly would!

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