nextcloud / nextcloud/mail

Ask if you want to save the draft (do not save any drafts so as not to accumulate dozens of unnecessary drafts)

Open
#12,328 3 comments 1 reaction 2 assignees View on GitHub

@nimishavijay is already working on this.

Since Feb 3, 2026.

0. to triage enhancement feature:drafts
Dominant language
JavaScript
Stars
1k
Forks
348
Avg merge
12h 28m
Merged PRs (30d)
91

Description

Is your feature request related to a problem? Please describe.

When writing an email and ...

  • pressing the “Escape” key
  • clicking on the close button
  • clicking outside the compose window (in the dark area)...

... a draft is automatically saved.

In theory, this behavior may seem relevant, but in practice, it creates a rather annoying problem: you end up unintentionally accumulating a large number of drafts, 90% of which have no reason to exist... and frankly, in everyday professional use, it's very annoying. What a mess in this draft folder! :-D

In these three UI scenarios:

  • a pop-up window should appear in ALL cases asking you whether you want to save the (new) draft or not.
  • the window should not be minimized in the bottom right corner; minimization should ONLY occur when you have deliberately clicked on the "_" minimize button. In addition, I have noticed another problem, which is that if you have minimized the new email and then want to go somewhere else in Nextcloud, a browser popup appears asking if you want to leave the current page (or not), with the risk of losing the email. Frankly, I think a lot of people don't understand this behavior : “What the heck is this pop-up window?” they say ;-). I understand that this is related to the fact that the minimized email is technically an unvalidated form, but in practice, it's not easy for non-IT people to understand. In my opinion, this situation should be avoided.
  • The same applies when reopening an existing draft. If, after modifying the draft, you exit it in one of the three ways described above, a pop-up should appear asking whether you want to save the changes or not. And same applies when minimizing compose window.
Describe the solution you'd like

Read above

Describe alternatives you've considered

No response

Additional context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.