Re: Can't save draft with sign=pgpmime

Subject: Re: Can't save draft with sign=pgpmime

Date: Sun, 29 Mar 2026 14:41:28 +0900

To: engelflorian@posteo.de, notmuch@notmuchmail.org

Cc:

From: David Bremner


engelflorian@posteo.de writes:

> Hi all
>
> I configured notmuch to always add "part sign=pgpmime" to a message I'm
> writing. If I try to save it as draft with `notmuch-draft-save` a dialog
> with the following opens
>

Unless you have specific reasons to sign a part, I recommend using the
sign message functionality instead, which uses the tags starting
#secure.  The draft-code special cases these, and saving and restoring
drafts seems to work.

> No openpgp signing key was found for this message.
> The sender of this message is "nil".
> Would you like to attempt looking up a signing key based on it?
>
> No matter what I answer to it, the draft is not saved.
>
> In the messages buffer the following error appears:
>
> mml-secure-epg-sign: Couldn’t find any signer names.

The above suggestion notwithstanding, it does seem like you have found a
bug.

The solution is probably to treat "#part sign" like "#secure" sign
treated. If someone wants to attack this, it's the function
notmuch-draft-quote-some-mml in emacs/notmuch-draft.el

If you don't mind the side effect of attachments happening at send time,
you could add "part" to notmuch-draft-quoted-tags.

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

Thread: