unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / Atom feed
* emacs: error decrypting s/mime
@ 2020-09-09 23:51 Alexander Adolf
  2020-09-11 21:32 ` Alexander Adolf
  2020-09-12 10:17 ` David Bremner
  0 siblings, 2 replies; 3+ 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] 3+ messages in thread

* Re: emacs: error decrypting s/mime
  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
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Adolf @ 2020-09-11 21:32 UTC (permalink / raw)
  To: notmuch

Hello again,

for what it's worth, and hoping that it helps track down the problem,
here is the elisp debugger backtrace for the situation I described
(hitting "$" twice):

---------------------------- Begin Quote -----------------------------
Debugger entered--Lisp 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=#616C6578616E6465722E61646F6C...")) :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 fa..."))) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))))
  notmuch-mm-display-part-inline((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :content-type "multipart/signed" :content ((:id 3 :content-type "multipart/mixed" :content ...) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status 
 ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) (:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :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 fa..."))) (:id 5 :content-
 type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime") "application/pkcs7-mime" t)
  notmuch-show-insert-part-*/*((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :content-type "multipart/signed" :content ((:id 3 :content-type "multipart/mixed" :content ...) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status ((
 :status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) (:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :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 fa..."))) (:id 5 :content-ty
 pe "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime") "application/pkcs7-mime" 1 0 #<overlay from 219 to 256 in *s/mime 2*>)
  notmuch-show-insert-bodypart-internal((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :content-type "multipart/signed" :content ((:id 3 :content-type "multipart/mixed" :content ...) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime")) :crypto (:signed (:
 status ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) (:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :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 fa..."))) (:id 5 :c
 ontent-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime") "application/pkcs7-mime" 1 0 #<overlay from 219 to 256 in *s/mime 2*>)
  notmuch-show-insert-bodypart((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :content-type "multipart/signed" :content ((:id 3 :content-type "multipart/mixed" :content ...) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status ((
 :status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) (:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :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 fa..."))) (:id 5 :content-ty
 pe "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime") 0)
  #f(compiled-function (part) #<bytecode 0x1fe852d14aed>)((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :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 fa..."))) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime"))
  mapc(#f(compiled-function (part) #<bytecode 0x1fe852d14aed>) ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :content-type "multipart/signed" :content ((:id 3 :content-type "multipart/mixed" :content (...)) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime")))
  notmuch-show-insert-body((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :content-type "multipart/signed" :content ((:id 3 :content-type "multipart/mixed" :content ...) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status ((:sta
 tus "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :content-type "multipart/signed" :content ((:id 3 :content-type "multipart/mixed" :content (...)) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :con
 tent-length 4478)))) :computed-type "application/pkcs7-mime")) 0)
  notmuch-show-insert-msg((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :content-type "multipart/signed" :content ((:id 3 :content-type "multipart/mixed" :content ...) (:id 5 :content-type "application/pkcs7-signature" :content-disposition "attachment" :filename "smime.p7s" :content-transfer-encoding "base64" :content-length 4478)))) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status ((:stat
 us "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) 0)
  notmuch-show-insert-tree(((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus (...) :content-type "multipart/signed" :content (... ...))) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 
 10 Sep 2020 01:15:24 +0200")) nil) 0)
  #f(compiled-function (tree) #<bytecode 0x1fe852d14c1d>)(((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus (...) :content-type "multipart/signed" :content (... ...))) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <al
 exander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) nil))
  mapc(#f(compiled-function (tree) #<bytecode 0x1fe852d14c1d>) (((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ... :content-type "multipart/signed" :content ...)) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alex
 ander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) nil)))
  notmuch-show-insert-thread((((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ... :content-type "multipart/signed" :content ...)) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 10 Se
 p 2020 01:15:24 +0200")) nil)) 0)
  #f(compiled-function (thread) #<bytecode 0x1fe852d14c45>)((((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus ((:status "good")) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content ((:id 2 :sigstatus ... :content-type "multipart/signed" :content ...)) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status ((:status "good" :fingerprint "142AFE91C66D710592AF9D90A1385D251FEC65B7" :created 1599693325 :expires 1631218144 :userid "1.2.840.113549.1.9.1=#616C6578616E6465722E61646F6C...")) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexand
 er.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) nil)))
  mapc(#f(compiled-function (thread) #<bytecode 0x1fe852d14c45>) ((((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus (...) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content (...) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status (...) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) nil))))
  notmuch-show-insert-forest(((((:id "a4c9fd548b26cdcd20ec8b05bc4507da@condition-alpha.c..." :match t :excluded nil :filename ("/Users/alexanderadolf/Library/Mail/Maildir/imap-ac..." "/Users/alexanderadolf/Library/Mail/Maildir/archive...") :timestamp 1599693324 :date_relative "Yest. 01:15" :tags ("encrypted" "inbox") :body ((:id 1 :encstatus (...) :content-type "application/pkcs7-mime" :content-disposition "attachment" :filename "smime.p7m" :content (...) :computed-type "application/pkcs7-mime")) :crypto (:signed (:status (...) :encrypted t) :decrypted (:status "full")) :headers (:Subject "s/mime 2" :From "Alexander Adolf <alexander.adolf@condition-alpha.c..." :To "\"Dipl.-Ing.(FH) Alexander Adolf\" <alexander.adolf@..." :Date "Thu, 10 Sep 2020 01:15:24 +0200")) nil))))
  notmuch-show--build-buffer((((#<window 6 on *s/mime 2*> "id:a4c9fd548b26cdcd20ec8b05bc4507da@condition-alph...")) ("id:a4c9fd548b26cdcd20ec8b05bc4507da@condition-alph...")))
  notmuch-show-refresh-view()
  notmuch-show-toggle-process-crypto()
  funcall-interactively(notmuch-show-toggle-process-crypto)
  call-interactively(notmuch-show-toggle-process-crypto nil nil)
  command-execute(notmuch-show-toggle-process-crypto)
----------------------------- End Quote ------------------------------

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

* Re: emacs: error decrypting s/mime
  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
  1 sibling, 0 replies; 3+ messages in thread
From: David Bremner @ 2020-09-12 10:17 UTC (permalink / raw)
  To: Alexander Adolf, notmuch; +Cc: Daniel Kahn Gillmor

[-- Attachment #1: Type: text/plain, Size: 737 bytes --]

Alexander Adolf <alexander.adolf@condition-alpha.com> writes:

> 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)

I'm a bit at a loss how to investigate this, not using SMIME or macOS
myself. Could you try duplicating the problem with the notmuch test key
/ certificate? I've attached the test key and the ca from from the
notmuch source.

If you have the same behaviour with this key, then please share a
message encrypted to this key that manifests the problem for you
(probably as an attachement)


[-- Attachment #2: test.crt --]
[-- Type: application/x-x509-ca-cert, Size: 1115 bytes --]

[-- Attachment #3: ca.crt --]
[-- Type: application/x-x509-ca-cert, Size: 1164 bytes --]

[-- Attachment #4: Type: text/plain, Size: 4 bytes --]



d

[-- Attachment #5: Type: text/plain, Size: 0 bytes --]



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

end of thread, other threads:[~2020-09-12 10:18 UTC | newest]

Thread overview: 3+ 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

unofficial mirror of notmuch@notmuchmail.org

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://yhetil.org/notmuch/0 notmuch/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 notmuch notmuch/ https://yhetil.org/notmuch \
		notmuch@notmuchmail.org
	public-inbox-index notmuch

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.mail.notmuch.general
	nntp://news.gmane.io/gmane.mail.notmuch.general


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git