From 524f1c9250e1b510542330d5c133192ef37d8c81 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 13 Oct 2023 08:08:42 -0700 Subject: [PATCH] Add settings to FTS --- dovecot.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/dovecot.nix b/dovecot.nix index a560f69..1182db2 100644 --- a/dovecot.nix +++ b/dovecot.nix @@ -391,6 +391,10 @@ in { fts_solr = url=http://${cfg.solr.host}:${toString cfg.solr.port}/ ${ optionalString cfg.debug "debug" } + fts_autoindex_exclude = \Junk + fts_autoindex_exclude = \Trash + fts_decoder = decode2text + fts_enforced = yes } mail_access_groups = ${cfg.mail-group} @@ -459,6 +463,14 @@ in { sieve_global_extensions = +vnd.dovecot.pipe +vnd.dovecot.environment } + service decode2text { + executable = script ${pkgs.dovecot}/libexec/dovecot/decode2text.sh + user = ${config.services.dovecot2.user} + unix_listener = decode2text { + mode = 0660 + } + } + recipient_delimiter = + lmtp_save_to_detail_mailbox = yes