Skip to content

Commit

Permalink
Option to disable fts_autoindex
Browse files Browse the repository at this point in the history
Workaround for bug in issue Mailu#751
  • Loading branch information
muhlemmer committed Dec 25, 2018
1 parent 3fa3fd5 commit 02bb77c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/dovecot/conf/dovecot.conf
Expand Up @@ -15,9 +15,10 @@ mail_plugins = $mail_plugins fts fts_lucene
plugin {
fts = lucene

{% if DISABLE_FTS_AUTOINDEX != 'true' %}
fts_autoindex = yes
fts_autoindex_exclude = \Junk

{% endif %}
fts_lucene = whitespace_chars=@.
}

Expand Down
5 changes: 5 additions & 0 deletions docs/compose/.env
Expand Up @@ -3,6 +3,11 @@
# these few settings must however be configured before starting the mail
# server and require a restart upon change.

# Set to "true" to disable full text search auto indexer. (Values: true, false)
# This defers imap indexing to happen only during searching
# Workaround for bug in issue #751: indexer-worker crashes and corrupts index files
DISABLE_FTS_AUTOINDEX=false

###################################
# Common configuration variables
###################################
Expand Down

0 comments on commit 02bb77c

Please sign in to comment.