unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* emacs: error decrypting s/mime
@ 2020-09-09 23:51 Alexander Adolf
  2020-09-11 21:32 ` Alexander Adolf
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Alexander Adolf @ 2020-09-09 23:51 UTC (permalink / raw)
  To: notmuch

Dear Notmuch Developers,

I have trouble getting going with S/MIME.

Emacs version: GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS
appkit-1671.60 Version 10.14.6 (Build 18G95)) of 2020-08-12

notmuch version: notmuch 0.31+2~gd127b16
(brew install notmuch --head)

gpgsm version: gpgsm (GnuPG) 2.2.23
libgcrypt 1.8.6
libksba 1.4.0

When I send an encrypted and signed message to myself, the sending works
as expected.

When I open the message in emacs from a notmuch search, the gnupg
password agent pops up, and asks for the passphrase for my secret
key. Once the password agent dialogue is finished (I entered the
passphrase), emacs switches to a notmuch-show buffer with the
message. The body part of the message however only shows "[ smime.p7m:
application/pkcs7-mime ]", nothing else.

I then hit the "$" key twice to turn processing for cryptographic MIME
parts off, and on again. After the second "$", the gnupg password agent
comes up again. I enter the passphrase, and the following appears in the
notmuch-show buffer:

---------------------------- Begin Quote -----------------------------
!!! Bodypart handler `notmuch-show-insert-part-*/*' threw an error:
!!! Wrong type argument: char-or-string-p, ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C6640636F6E646974696F6E2D616C7068612E636F6D,CN=Alexander Adolf,O=Condition-ALPHA Digital Broadcast Technology Consulting,L=Munich,C=DE")) :content-type "multipart/signed" :content ((:id 3 :content-type "multipart/mixed" :content ((:id 4 :content-type "text/plain" :content-disposition "inline" :content "Earlier patches have moved the handling of wash fake inline patch
parts to insert-bodypart so we can drop the function
notmuch-show-insert-part-inline-patch-fake-part
"))) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478))))
----------------------------- End Quote ------------------------------

The actual message content seems to have been decrypted ok (it shows up
as the text/plain part in the dumped function arguments). Also, I can
open the message without problems in the Apple Mail.app that ships with
macOS (shows the same decrypted content, and a good signature).


Many thanks and looking forward to your thoughts,

  --alexander

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-12-22 20:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-09 23:51 emacs: error decrypting s/mime Alexander Adolf
2020-09-11 21:32 ` Alexander Adolf
2020-09-12 10:17 ` David Bremner
2020-11-12 14:26 ` David Bremner
2020-11-13  0:13   ` David Bremner
2020-11-13 11:50     ` David Bremner
2020-11-17 23:25       ` Alexander Adolf
2020-12-14 22:20       ` Alexander Adolf
2020-12-14 22:42         ` Alexander Adolf
2020-12-22 20:19       ` Alexander Adolf

Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).