Skip to content

Commit

Permalink
feat(dovecot): enable flatcurve substring search in FTS configuration (
Browse files Browse the repository at this point in the history
  • Loading branch information
stephdl authored Jan 29, 2025
1 parent 1507e44 commit 85f8bd3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dovecot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ Private TCP ports:
documentation](https://doc.dovecot.org/settings/core/#core_setting-default_process_limit).
The `default_client_limit` parameter is proportionally set to 10 times this value.
- `DOVECOT_SHAREDSEEN`, default empty. If set, the SEEN flag of shared folders is stored in a `dovecot.pvt*` index file, for every user

- `DOVECOT_FLATCURVE_SUBSTRING_SEARCH`, default `no` (`yes` to enable). If enabled, allows substring searches (RFC 3501 compliant). However, this requires significant additional storage space. Many users today expect "Google-like" behavior, which is prefix searching, so substring searching is arguably not the modern expected behavior anyway. Therefore, even though it is not strictly RFC compliant, prefix (non-substring) searching is enabled by default.

## Logs

The container sends log messages to `syslog`. Increase log verbosity by
Expand Down
1 change: 1 addition & 0 deletions dovecot/usr/local/bin/reload-config
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ tmpl_mail_plugins="acl listescape notify mail_log fts fts_flatcurve"
tmpl_mail_max_userip_connections="${DOVECOT_MAX_USERIP_CONNECTIONS:-20}"
tmpl_default_process_limit="${DOVECOT_DEFAULT_PROCESS_LIMIT:-400}"
tmpl_default_client_limit=$(( DOVECOT_DEFAULT_PROCESS_LIMIT * 10 ))
flatcurve_substring_search="${DOVECOT_FLATCURVE_SUBSTRING_SEARCH:-no}"
# Note: value "0" means "unlimited default quota"; value "" (empty string)
# means "quota plugin disabled".
if [ -n "${DOVECOT_QUOTA_MB}" ]; then
Expand Down
1 change: 1 addition & 0 deletions dovecot/usr/local/lib/templates/local.conf
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ plugin {
fts_decoder = decode2text
fts_filters = lowercase normalizer-icu stopwords
fts_filters_en = lowercase english-possessive stopwords
fts_flatcurve_substring_search = ${flatcurve_substring_search}
}

service decode2text {
Expand Down

0 comments on commit 85f8bd3

Please sign in to comment.