-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable Substring Search in Dovecot #7292
Comments
QA target is ghcr.io/nethserver/mail:1.5.3-dev.1 the plugin is disabled by default, to enable it, add to environment file: use roundcubemail to make some search in your email |
The result obtained is not the desired one. I recommend checking using this type of sender: If you disable the
then
the same search provides the expected result ! |
I tested in a production server and it seems to return the correct results.
Searches in From now match by substring.
Searches in From do not match by substring. Note: After reload it may take a while to become effective if there is an open IMAP session. Within Webtop I did a logout/login. VERIFIED |
Flatcurve substring search works for new installations, however on upgraded installations the indexes must be rebuilt. The resulting index require much more disk space, because each substring needs to be indexed. Please provide an alternative to Flatcurve substring search: let's add an environment variable that can disable FTS+Flatcurve plugin completely, to rely on the vanilla RFC-compliant search of Dovecot. |
QA test with the mail:1.5.3-dev.2
|
VERIFIED Tested with both new installation and update |
Issue Description
Currently, when using Dovecot with the Flatcurve plugin, we rely on the prefix-based search to find emails in clients like Roundcube. This follows a "Google-like" behavior.
However, we would prefer to also allow substring-based search to improve flexibility.
Expected Behavior
Searching for first should find first.user (prefix-based, current behavior).
Searching for user should also find first.user (substring-based, desired behavior).
Proposed Solution
Enable the substring search feature of the Flatcurve plugin by introducing an environment variable:
📖 Dovecot Flatcurve Substring Search
Alternative Solutions
Educate users to write full search terms for accurate results.
See Also
NethServer ns8-mail v1.5.2
Thanks @lucagasparini for the suggestion! 🚀
The text was updated successfully, but these errors were encountered: