diff --git a/mail-server/dovecot.nix b/mail-server/dovecot.nix index 926307a..c4811e1 100644 --- a/mail-server/dovecot.nix +++ b/mail-server/dovecot.nix @@ -33,7 +33,7 @@ let "maildir:${cfg.mailDirectory}/%d/%n${maildirLayoutAppendix}" + (lib.optionalString (cfg.fullTextSearch.enable && (cfg.fullTextSearch.indexDir != null)) - ":INDEX=${cfg.fullTextSearch.indexDir}" + ":INDEX=${cfg.fullTextSearch.indexDir}/%d/%n" ); postfixCfg = config.services.postfix;