Threads with some deleted messages are missing in search

Description

Quite often I’m not able to find the required thread in search. I was puzzled by this until I found a few such threads displayed in [Google Mail]/Bin even though they are not in the Bin in the gmail web interface. It happens with all accounts because Mailspring displays all deleted mail under [Google Mail]/Bin (which is another issue - it should be like that).

To Reproduce…

Steps to reproduce the behavior:

  1. Pick en existing thread in a gmail.com account
  2. Create a new message in the thread and then delete that message.

Expected Behavior

The thread should now be in [Google Mail]/Bin and not searchable.

Screenshots

image

Setup

  • OS and Version: Debian 13 trixie
    • Installation Method: .deb
  • Mailspring Version: 1.13.3

The same here.

I am a paid version user

I noticed a very serious problem. Please fix it

When we delete a draft email while being created, the email disappears from the inbox (the same thing happens with archived emails). It is not searched in the inbox or archived, it is only visible when searching in the trash.

It looks like the label assigned to the deleted draft causes the entire sequence of e-mails to be displayed only in the trash