Re: [PATCH 2/2] emacs: postpone/resume support

Subject: Re: [PATCH 2/2] emacs: postpone/resume support

Date: Sun, 11 Sep 2016 09:05:20 -0300

To: Mark Walters, notmuch@notmuchmail.org

Cc:

From: David Bremner


Mark Walters <markwalters1009@gmail.com> writes:

> This provides preliminary support for postponing and resuming in the
> emacs frontend. On postponing it uses notmuch insert to put the
> message in the notmuch database; resume gets the raw file from notmuch
> and using the emacs function mime-to-mml reconstructs the message
> (including attachments).

I haven't really reviewed this yet, but I noticed it seems to need some
special handling for signed/encrypted messages.

I created a test message consisting of the mml tag

  "#secure method=pgpmime mode=sign"

(added with C-c C-m C-s) and a pdf attachment.

Saving with C-x C-s created a text/plain part with the #secure tag in
it. When I edited (and sent) the saved draft, it did not sign
anything. This might be related to a bug/undocumented-feature of mml
only parsing #secure tags at the top of the message.

Actually, I just tested with
 "#secure method=pgpmime mode=signencrypt"
and the same thing happens, which is an even bigger footgun.

this behaviour should really be fixed upstream in emacs, but we probably
don't want block on that, so some kind of workaround seems to be needed.

1473594252.M451803P952.zancas:2,DS (application/octet-stream)
signature.asc (application/pgp-signature)

Thread: