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

David Bremner david at tethera.net
Sun Sep 11 05:05:20 PDT 2016


Mark Walters <markwalters1009 at 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.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 1473594252.M451803P952.zancas:2,DS
Type: application/octet-stream
Size: 26846 bytes
Desc: test message
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20160911/8be429c0/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 629 bytes
Desc: not available
URL: <http://notmuchmail.org/pipermail/notmuch/attachments/20160911/8be429c0/attachment-0001.sig>


More information about the notmuch mailing list