You've already forked Mailu
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:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
###############
|
||||
|
Reference in New Issue
Block a user