[emacs-berlin] Encrypted emails from emacs

Michael Heerdegen michael_heerdegen at web.de
Wed May 6 00:23:39 UTC 2026


Tilmann Singer <tils at tils.net> writes:

> > A decrypt function seems to be missing.
>
> I don't know why, I can only tell you that something in the
> notmuch-show / emacs stack apparently decrypts incoming encrypted
> messages.

Here this is what happens when I open an encrypted message in Gnus:

| (y-or-n-p "Decrypt (PGP) part? ")
| (mm-possibly-verify-or-decrypt ((#<buffer *mm*-616368> ("application/pgp-encrypted") ...)...
| (mm-dissect-multipart (#("multipart/encrypted" 0 19 ...) ) ...)
| (mm-dissect-buffer nil t)
| (gnus-display-mime)
| (gnus-article-prepare-display)
| (gnus-article-prepare 2344 nil)
| (gnus-summary-display-article 2344 nil)
| ...

Look at `mm-possibly-verify-or-decrypt' to see what that does.


HTH,

Michael.


More information about the emacs-berlin mailing list