notmuch-vim icon indicating copy to clipboard operation
notmuch-vim copied to clipboard

Support for drafts

Open jcommelin opened this issue 10 years ago • 1 comments

Is it an option to factor out the part of the script that removes the Notmuch-Help lines and parses the Attach: lines, so that one can save a draft and easily send it later?

This idea is not yet well fleshed out; but I'dd be glad to help improve this awesome project. Just launching an idea…

jcommelin avatar Dec 15 '14 07:12 jcommelin

Hi and thanks for your suggestion. Handling attachments might get tricky, yes. If it's just about postponing sending it should be as easy as described (using notmuch insert and add tag:draft). But of you want to open the mail again you should be able to also sort out attachments - and also remove them. But storing the attachment in a temporary file, removing the parts and adding the (temp.) Attachment header should work.

The code would be reusable for a "resend" command to send out already sent mails again. I occasionally would make use of it, because cc or bcc does not work (slightly modified text).

Furthermore I think we should entirely get rid of the Notmuch-Help-lines. It is confusing. You usually read the docs (:help notmuch-usage) and then know what tot do. Furthermore, if you customize send/quit shortcuts the message is misleading.

I hope I can post a PR these days, probably @imain can think of further pitfalls that need to be worked out.

ff2000 avatar Dec 15 '14 10:12 ff2000