nextcloud / nextcloud/mail

Refresh "all inboxes" view after Clear all messages command in account inbox

Open
#12,912 1 comment 0 reactions 0 assignees View on GitHub

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.

Steps to reproduce:

  1. Empty an inbox folder from one account by using the "Clear all messages " command
  2. Go to All inboxes virtual folder
  3. Removed emails are still listed and overload the view, lowering the value of this virtual folder.
Describe the solution you'd like

Apply the same logic that moving or removing a single item from Account's inbox actually refreshes the All inboxes view.

Describe alternatives you've considered

I tried clicking on the "reload" button near the "New message" one, but it doesn't trigger a rebuild of the view.

Additional context

Maybe having an entry to force the rebuild of the index for the All inboxes folder could help

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.

Research direction

Start at the account inbox's "Clear all messages" command and trace how the All inboxes virtual folder is rebuilt after messages are removed. Compare this with the refresh path used when moving or removing a single item. Done means cleared messages no longer remain listed in All inboxes without requiring a manual reload.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
50/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.