From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id uEA0I7N9WV9kHwAA0tVLHw (envelope-from ) for ; Thu, 10 Sep 2020 01:13:23 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qPgSH7N9WV8DGwAAB5/wlQ (envelope-from ) for ; Thu, 10 Sep 2020 01:13:23 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [144.217.243.247]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (2048 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id A03349400C7 for ; Thu, 10 Sep 2020 01:13:21 +0000 (UTC) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id CF2DB29C3E; Wed, 9 Sep 2020 21:13:13 -0400 (EDT) X-Greylist: delayed 4879 seconds by postgrey-1.36 at nmbug; Wed, 09 Sep 2020 21:13:10 EDT Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.31.26]) by mail.notmuchmail.org (Postfix) with ESMTPS id F1CE529C29 for ; Wed, 9 Sep 2020 21:13:10 -0400 (EDT) Received: from [46.244.221.29] (helo=condition-alpha.com) by smtprelay03.ispgateway.de with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) (envelope-from ) id 1kG9sU-0004je-00 for notmuch@notmuchmail.org; Thu, 10 Sep 2020 01:51:50 +0200 Message-Id: From: Alexander Adolf To: notmuch@notmuchmail.org Subject: emacs: error decrypting s/mime Date: Thu, 10 Sep 2020 01:51:49 +0200 MIME-Version: 1.0 X-Df-Sender: YWxleGFuZGVyLmFkb2xmQGNvbmRpdGlvbi1hbHBoYS5jb20= Message-ID-Hash: Q4PNSEP7O7CUHYVRDTPVQ2NN5JT2RWDV X-Message-ID-Hash: Q4PNSEP7O7CUHYVRDTPVQ2NN5JT2RWDV X-MailFrom: alexander.adolf@condition-alpha.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 144.217.243.247 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Spam-Score: 0.53 X-TUID: SQ7jCq51UGfM 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