EShellSearchbar: Save search scope per folder
In the mail searchbar, you have a combobox to choose the search domain, such as:
- in current folder
- in current folder and subfolders
- in current account
- in all accounts
...which is great, except this bug resulting from the combination of two phenomenon:
- Searches are remembered and auto-reactivated per-folder (which is arguably nice)
- The search domain type isn't re-set to "this folder" or "this folder and subfolders" when entering a folder that already had an existing search.
To reproduce the issue, have two mail folders A and B.
- Enter folder B, do a "current folder" (or "current folder and subfolders") search for "foo"
- Switch to folder A, do a "current account" (or "all accounts") search for "bar"
- Switch to folder B
Result: folder B searches for "foo" across the whole account (or all accounts) instead of the expected search domain, which can lead to some very long waiting times.