Move to search hangs for 20-30 seconds after you type the first letter in search

Description

When using the move to hotkey, the folder search dialogue appears imediately but then hangs for 20-30 seconds sometimes for multiple minutes after typing the first letter. This is most likely caused due to an insufficient cache size for folder names and API calls being sent to refresh the folder list.

To Reproduce…

Steps to reproduce the behavior:

  1. Use hot key for move message to folder

  2. type at least 2 letters in seach bar

  3. watch the system hang

  4. eventually the search results are returned

Expected Behavior

Folder structure should be prefetched when a user starts a session and only require an api call if the users query returns no results

Screenshots

Setup

  • OS and Version: Win11
    • Installation Method: EXE
  • Mailspring Version: 1.20 (the issue started a few versions ago, but has gotten progressively worse.

Additional Context

this appears to have been fixed in the latest update