KamoCRM

Every folder of a switched-to mailbox works, and search is rebuilt

Fixkamo-internal
Shipped
September 23, 2026 at 6:13 AM UTC
Author
Kamo
Commit
4cbca25

Switching mailboxes. The folder sidebar always loaded the member's OWN folder tree, whatever mailbox was open - so a second mailbox showed the primary's folders and counts, and every folder but Inbox (the one folder all mailboxes have) failed or came up empty. The sidebar and the move picker now load the open mailbox's tree, a switch opens the new mailbox at its Inbox with nothing of the last one left on screen, and the folder-tree request slot is keyed per mailbox. Behind that sat the rest of the bug: star, delete, move, archive, spam, the bulk actions, folder management, search, attachment links, inline images and the body prefetch all named no mailbox and acted on the member's own, at whatever message carried the same UID; cached bodies were keyed by folder and UID alone (so another mailbox - or the next member on the same browser - could be shown the wrong mail). All of them now carry the open mailbox (lib/email/mailboxTarget), bodies are cached per member and mailbox, and the member's own primary opened by id is normalised back to "my mail". Labels and smart folders, which describe only the member's own mailbox, are offered only there. Selection, highlight and optimistic updates are keyed by folder AND uid, since search results span folders. Search. A rebuilt search box: operator chips with their own x, suggestions that explain each operator in the member's language, recent and saved searches, Enter to search now, an "All folders / Only <folder>" toggle remembered per member, and a plainly labelled "How to search" that opens a guide written for non-technical members - every kind of search with examples and a Try it button. Results say how many and where, mark the matching words, show each row's folder, and explain any part of the query the server could not use. The advanced form opens holding the current query, keeps anything it has no box for, and shows the search it will run. Searches abort and supersede each other instead of racing, and a slow folder load can no longer overwrite them. Escape closes the suggestions without emptying the box (the native search-field clear used to eat the query), and in the narrow folder column the scope labels no longer squeeze to "All fol...". Keyboard archive/delete now ask first, like the buttons.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing