Re: decrypted S/MIME messages not shown in Emacs

Subject: Re: decrypted S/MIME messages not shown in Emacs

Date: Thu, 09 Jul 2026 08:22:43 +0900

To: Robert Jäschke, notmuch@notmuchmail.org

Cc:

From: David Bremner


Robert Jäschke <robert.jaeschke@hu-berlin.de> writes:

> Hello,
>
> using Emacs (30.1) and notmuch-emacs (0.39-1) I can find S/MIME
> encrypted mails by searching for their contents (here:
> "Pantherforelle"):
>
>> Robert Jäschke <robert.jaeschke@hu-berlin.de> (7 mins. ago) (encrypted inbox signed)1/2
>> Subject: TEST
>> To: robert.jaeschke@hu-berlin.de
>> Date: Tue, 07 Jul 2026 14:43:02 +0200
>> 
>> [ smime.p7m: application/pkcs7-mime ]
>
> Unfortunately, the content of the message is not shown, although I have
> set notmuch-crypto-process-mime to t. Thus, I added some debug output to
> notmuch-call-notmuch-sexp and saw that it calls
>
>> notmuch show --format=sexp --format-version=5 --decrypt=true --exclude=false ' thread:0000000000015963 and ( Pantherforelle ) '
>
> when I try to show the above message. Running this in a terminal, I
> can successfully show the message contents:

In my (limited) experience, these kind of issues are usually related to
the environment, particularly to pinentry.  This could depend on the way
you start emacs. Do you still have the same behaviour for emacs started
from the same shell where notmuch works? If so, I guess try inspecting
the output of M-x shell-command <return> env <return>. Other possibly
relevant questions are what kind of pinentry tool do you use, and is
emacs running a GUI frame or in a terminal.

d
_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: