Messages in child folders of `trash` are shown in tag views

Aperta
#252 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
70/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend, database

Direzione di ricerca

The exclusion lives in the subquery in src/db/handlers.ts (around line 61) that filters out messages in the trash mailbox, and it only matches the trash folder itself, not its children. Read how mailboxes and their parent relationships are stored, then extend the filter so descendants of trash are excluded too. Done when a message moved to Deleted Items/2024 no longer appears in the tag view, reproduced by the steps in the issue.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug

When viewing the list of messages with a specific tag, messages in the trash folder are not included in the list (as expected). However, tagged messages in a child folder below trash are included in the tag view (and this is unexpected).

To Reproduce

  1. Add a tag to a message in Deleted Items
  2. See that the message is not listed in the tag view
  3. Move the message to a child folder (e.g. Deleted Items/2024)
  4. See that this message is listed in the tag view

Expected behavior

Messages in child folders below trash should also not be shown in the tag view. I have confirmed that in Thunderbird the messages in child folders are also excluded from the tag view.

System

  • OS: Fedora Linux 44.20261111.0 (Silverblue)
  • Browser Version: Firefox 159.0.1 (64-Bit)

Additional context

The sub query for excluding messages in trash simply does not account for child folders.

The same behavior applies to the archive folder, but as I noted in https://github.com/thunderbird/stormbox/issues/237 we may want to show archived messages and not show messages in junk (and its child folders). Ultimately we should just apply the same logic to any of the excluded roles.

Lingua principale
TypeScript
Stelle
121
Fork
11
Merge medio
1g 3h
PR unite (30g)
11

Preparare l'ambiente

Apri in Codespaces

Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di thunderbird/stormbox

Tutte le issue di thunderbird/stormbox

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.