unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Alexander Adolf <alexander.adolf@condition-alpha.com>
To: notmuch@notmuchmail.org
Subject: emacs: error decrypting s/mime
Date: Thu, 10 Sep 2020 01:51:49 +0200	[thread overview]
Message-ID: <feb3693d31fe7a72f9253164ffa8baa9@condition-alpha.com> (raw)

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

             reply	other threads:[~2020-09-10  1:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-09 23:51 Alexander Adolf [this message]
2020-09-11 21:32 ` emacs: error decrypting s/mime 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=feb3693d31fe7a72f9253164ffa8baa9@condition-alpha.com \
    --to=alexander.adolf@condition-alpha.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).