cypht icon indicating copy to clipboard operation
cypht copied to clipboard

We can now search in a folder. Let's add "include subfolders", "all folders" and special folders (sent, draft, archive, etc.)

Open marclaporte opened this issue 2 years ago • 4 comments

The current search in Cypht is quite impressive in that you can search throughout various mail accounts, which is not possible in Roundcube as per: https://github.com/roundcube/roundcubemail/issues/4972

https://github.com/jasonmunro/cypht/tree/master/modules/advanced_search is very powerful, but there is a an issue that you need to indicate each folder you want to search in.

In contrast, here is what Roundcube offers: 2023-02-22_103531

So let's add what Roundcube does. And given Cypht's multi-account feature, we can also add:

  • Search in all sent folders
  • Search in all draft folders
  • Search in all archive folders (here subfolders would be useful)
  • etc.

It will be really efficient when combined with https://github.com/jasonmunro/cypht/issues/306

marclaporte avatar Feb 22 '23 16:02 marclaporte

Also, there should be a filter for subscribed vs not subscribed, as non-subscribed folders are often more archival and thus, not so interesting to search through (of course, sometimes they are so we still want to be able to) https://github.com/jasonmunro/cypht/pull/622

marclaporte avatar Feb 23 '23 19:02 marclaporte

"Is it too much to ask, for example, for a webmail client with global search? The only one that I found so far is Roundcube, which can do a global search (all parts, all folders) with "just" 4 additional clicks. Why is that? I had a server running Horde Groupware in 2013 that could do that." https://www.reddit.com/r/selfhosted/comments/16d3ae0/the_sad_state_of_selfhosted_webmail/

I agree. We will work on this.

marclaporte avatar Sep 09 '23 15:09 marclaporte

Related discussion in SnappyMail:

  • https://github.com/the-djmaze/snappymail/issues/196
  • https://github.com/the-djmaze/snappymail/issues/154

marclaporte avatar Sep 09 '23 16:09 marclaporte

I like how Apple Mail handles searches, by presenting a "scope selection" as the search term is being entered.

apple-mail-search

Selecting a scope is optional, but very intuitive. The tag-based interface is easy to tweak at any time.

apple-mail-search-scope

And to select the account-level scope, you just swap which "Inbox" is selected in the left column. You can search across all accounts, or a specific one. It's very quick and simple.

TheDigitalOrchard avatar May 25 '24 05:05 TheDigitalOrchard