[PATCH v2 0/3] postpone and resume support

Mark Walters markwalters1009 at gmail.com
Fri Jun 3 10:49:52 PDT 2016


This is a new version of the WIP patch at
id:1464915472-5669-1-git-send-email-markwalters1009 at gmail.com

So far it seems to deal with all cases that I have tried, and the
CAVEATS list is rather smaller than before.

The bindings are C-x C-s to save a draft (in notmuch-message-mode) C-c
C-p to postpone a draft (ie save and exit buffer), and "e" to resume
editing from either show or tree mode. You may want to add "draft" to
your list of excluded tags to hide them unless you specifically search
for them.

CAVEATS

Attachments work, but the attachment that will be sent is the
attachment that was there when the message was postponed. (Attachments
added after resume are obviously not added until the message is sent.)

Each save saves a separate copy of the message. We hide these copies
with the deleted tag but we don't actually delete them. Thus if you
save several copies of message with large attachments you will use a
lot of space.

If you use signing or encryption then I don't know what will happen: 
I have not tested at all.  You might sign a partial message that you
didn't mean too; you might expose plain text to someone.

Finally, and this is not really a caveat, it *may* be possible to resume
a previously sent message. At the moment I haven't tested this, and
have made it so that emacs warns before allowing it.

Best wishes

Mark


Mark Walters (3):
  emacs: tree: move binding for pressing button in message pane to g
  emacs: notmuch-check-exit-status bugfix
  emacs:  postpone/resume support

 emacs/notmuch-lib.el     |  10 +++-
 emacs/notmuch-message.el | 135 +++++++++++++++++++++++++++++++++++++++++++++++
 emacs/notmuch-mua.el     |   4 ++
 emacs/notmuch-show.el    |  13 +++++
 emacs/notmuch-tree.el    |   3 +-
 5 files changed, 162 insertions(+), 3 deletions(-)

-- 
2.1.4



More information about the notmuch mailing list