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

Option to delete old drafts when sending or saving. #1313

Closed
wants to merge 1 commit into from
Closed

Option to delete old drafts when sending or saving. #1313

wants to merge 1 commit into from

Conversation

stevenengler
Copy link

When you run the 'editnew' command in a thread view, if the email you are copying has the 'draft' flag, it will pass this message on to the envelope object. When the user saves or sends a draft, they will be prompted to delete the old draft.

I do not currently have alot set up to send emails, so someone would need to test that process. But I believe it should work, it's not really any different from the process when saving new drafts.

Let me know if you'd like me to change anything.

@pazz
Copy link
Owner

pazz commented Sep 15, 2018

please squash these into one commit for easier reviewing. Moreover, if you add a new command you might need to build and commit the docs to make sure that the travis built bot doesn't fail..

@stevenengler
Copy link
Author

Okay, squashed and built.

@@ -280,6 +316,47 @@ def __init__(self, mail=None, envelope=None, **kwargs):
ui.dbman.add_message(path, account.sent_tags + initial_tags)
await ui.apply_command(globals.FlushCommand())

# if provided, delete the old draft
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks very much like the code in SendCommand above. why the duplication?

@polyzen
Copy link
Contributor

polyzen commented Apr 22, 2019

Referencing #1044

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

Successfully merging this pull request may close these issues.

3 participants