How to decrypt multipart/encrypted parts in notmuch-emacs
Jameson Graef Rollins
jrollins at finestructure.net
Wed Apr 11 09:41:05 PDT 2012
On Wed, Apr 11 2012, Olivier Berger <olivier.berger at it-sudparis.eu> wrote:
> Is there a way to decrypt multipart/encrypted messages in notmuch-emacs
Hi, Olivier. Yes, it is possible.
> I can only get a purple "Decryption error" message...
The fact that you're getting this messages means that notmuch is
attempting to decrypt the message, but there was a decryption problem.
A typical problem is that gpg-agent is not running. Notmuch uses gnupg
to decrypt, but it requires that gpg-agent be running to get the
passphrase from the user. Do you have gpg-agent running?
> The mail looks like :
The format of the multipart/encrypted looks fine, so I see no problems
there (assuming the encryption was done properly).
You might also try decrypting the message on the command line, as that
will take any emacs issues out of the loop:
notmuch show --decrypt id:$msgid
It might help to redirect stdout to /dev/null to make it easier to see
any gnupg error messages
I hope that helps. Let us know if you still can't figure it out, or if
you have other questions.
jamie.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20120411/7918ba58/attachment-0001.pgp>
More information about the notmuch
mailing list