Trouble decrypting multipart/encrypted
Eric Skoglund
eric at pagefault.se
Sun Nov 27 14:13:35 PST 2016
Hello, I've recently started using notmuch (together with emacs) and
have now encountered some problems when trying to decrypt a
multipart/encrypted message.
The message body looks like:
body{
part{ ID: 1, Content-type: multipart/encrypted
part{ ID: 2, Content-type: application/pgp-encrypted
Non-text part: application/pgp-encrypted
part}
part{ ID: 3, Filename: encrypted.asc, Content-type: application/octet-stream
Non-text part: application/octet-stream
part}
part}
body}
And when running the command notmuch show --decrypt id:<message-id> I
get the error 'Failed to decrypt part: Canceled.'.
I've verified that gpg-agent is running (v2.1.13), both using ps which
gives me: gpg-agent --homedir /home/eric/.gnupg --use-standard-socket
--daemon and the gpg-connect-agent /bye return code is 0.
I also tried to add the use-agent in gpg.conf but that hasn't helped at
all.
Signing and encrypting email via C-c C-m s p and C-c C-m c p works
fine. And given that it doesn't work outside of emacs I don't think it
is an emacs problem. I'm also able to decrypt the message via the
command line using just gpg.
Gpg2 version: 2.1.13
I'm running fedora 24 with gnome if that helps.
Any input on how to solve this issue is greatly appriciated.
Regards,
Eric
More information about the notmuch
mailing list