Define sieveDirectory

This commit is contained in:
niten 2023-09-24 13:33:54 -07:00
parent ddea9d9ce0
commit 43b33c196d
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,8 @@ let
'';
};
sieveDirectory = "${cfg.state-directory}/sieves";
in {
options.fudo.mail.dovecot = with types; {
enable = mkEnableOption "Enable Dovecot2 IMAP server.";
@ -336,7 +338,7 @@ in {
plugin {
sieve_plugins = sieve_imapsieve sieve_extprograms
sieve = file:${cfg.state-directory}/sieves/%u/scripts;active=${cfg.state-directory}/sieves/%u/active.sieve
sieve_default = file:${cfg.sieve-directory}/%u/default.sieve
sieve_default = file:${sieveDirectory}/%u/default.sieve
sieve_default_name = default
# From elsewhere to Spam folder
imapsieve_mailbox1_name = Junk