GPG Agent lacks verbose error
When using GPG Agent, and it fails to encode a message, only a very simple error is returned:
error while sending <text> ( )
The only way of finding out what is actually going on is by using gdb backtrace (bt), as the logging in verbose and syslog also lack the greater details.
In my case the key-trust was too low, but the only eventually I found out replicating the GPG Agent command in the terminal:
echo <text> | gpg --status-fd 2 --no-tty --use-agent --encrypt --recipient "<key-id>" --armor
Better feedback on the actual issue would help people get it working. I know others who have refrained from using GPG Agent just because they couldn't figure out what whas going wrong.
Steps to reproduce
Use a misconfigured GPG Agent setup (for example without the neccessary trust in the receipient's key-id) and try to send a message.
OS version: Ubuntu Gnome 15.04
GTK version: 3.14.12
PyGTK version: 2.24.0-3ubuntu4
I'm not able to reproduce. When there is not enough trust, a dialog asks if we still want to encrypt.
I however wasn't presented with such a dialog (as mentioned in #8041 (closed)), and would have liked the option. This would be the feature I refered to in the original post regarding Evolution, in that I can choose to encrypt even though no thrust level is established.
Could this be in the used version, or the way in which it was compiled for Ubuntu? And how would I be able to check this?
I have no idea why you don't have this dialog. Could you run Gajim from console with "gajim -v" to see debug output when you try to send a GPG encrypted message to your contact?
Here's a debug log exposing similar situation (i.e. no meaningful error is presented to the user), Gajim 0.16.1-593282487ba4:
21/07/15 20:11:19 (D) gajim.c.gnupg ['gpg', '--status-fd', '2', '--no-tty', '--use-agent', '--encrypt', '--recipient', u'A5F3DB56', '--armor'] 21/07/15 20:11:19 (D) gajim.c.gnupg data copier: \<Thread(Thread-44, initial daemon)>, \<_io.BytesIO object at 0x7f8686b55ad0>, \<open file '\<fdopen>', mode 'wb' at 0x7f868651f390> 21/07/15 20:11:19 (D) gajim.c.gnupg stderr reader: \<Thread(Thread-45, initial daemon)> 21/07/15 20:11:19 (D) gajim.c.gnupg stdout reader: \<Thread(Thread-46, initial daemon)> 21/07/15 20:11:19 (D) gajim.c.gnupg sending chunk (26): 'dd \t \t\t\t\t \t \t \t \t\t \t ' 21/07/15 20:11:19 (D) gajim.c.gnupg closed output, 26 bytes sent 21/07/15 20:11:19 (D) gajim.c.gnupg gpg: 8DEC894F: There is no assurance this key belongs to the named user 21/07/15 20:11:19 (D) gajim.c.gnupg gpg: Sorry, no terminal at all requested - can't get input 21/07/15 20:11:19 (D) gajim.c.gnupg encrypt result: '' 21/07/15 20:11:19 (D) gajim.c.ged message-not-sent