Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for drafts #6

Open
jcommelin opened this issue Dec 15, 2014 · 1 comment
Open

Support for drafts #6

jcommelin opened this issue Dec 15, 2014 · 1 comment

Comments

@jcommelin
Copy link

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…

@ff2000
Copy link
Collaborator

ff2000 commented Dec 15, 2014

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants