1
0
mirror of https://github.com/Mailu/Mailu.git synced 2025-08-10 22:31:47 +02:00

Enable FTS on attachments too

This commit is contained in:
Florent Daigniere
2023-10-10 08:40:33 +02:00
parent 6ba8d62572
commit 6962b9bcb5
2 changed files with 14 additions and 2 deletions

View File

@@ -7,8 +7,8 @@ ARG VERSION
LABEL version=$VERSION
RUN set -euxo pipefail \
; apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main 'dovecot<2.4' dovecot-lmtpd dovecot-pigeonhole-plugin dovecot-pop3d dovecot-submissiond \
; apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing dovecot-fts-flatcurve \
; apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/main 'dovecot<2.4' dovecot-lmtpd dovecot-pigeonhole-plugin dovecot-pop3d dovecot-submissiond poppler-utils \
; apk add --no-cache --repository=http://dl-cdn.alpinelinux.org/alpine/edge/testing dovecot-fts-flatcurve catdoc \
; apk add --no-cache rspamd-client \
; mkdir /var/lib/dovecot

View File

@@ -66,6 +66,8 @@ plugin {
fts_filters = normalizer-icu stopwords
fts_filters_en = lowercase english-possessive stopwords
fts_filters_fr = lowercase contractions stopwords
fts_decoder = decode2text
{% endif %}
{% if COMPRESSION in [ 'gz', 'bz2', 'lz4', 'zstd' ] %}
@@ -77,6 +79,16 @@ plugin {
{% endif %}
}
{% if FULL_TEXT_SEARCH %}
service decode2text {
executable = script /usr/libexec/dovecot/decode2text.sh
user = nobody
unix_listener decode2text {
mode = 0666
}
}
{% endif %}
###############
# Authentication
###############