Do not save empty mails as draft
Open
Nobody has claimed this yet.
1. to develop
enhancement
- 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.
Currently, empty drafts get saved littering the draft folder.
Reproduce:
- Start writing a new mail (click "+ New message")
- Do nothing (no changes, no modifications)
- Close editor
- Empty draft is saved
Describe the solution you'd like
If the Mail is empty, do not save it as draft.
A mail is empty, if:
- has no subject
- has no recipient
- has no attachments
- body is empty or only has the automatic signature
Describe alternatives you've considered
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the new-message editor's close and draft-save flow, using the reproduction steps as the entry point. Check how subject, recipients, attachments, body, and the automatic signature are represented, then verify that a message meeting all four empty-mail conditions is not saved while any content still is.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100