nixos/dovecot: fix sieve script config generation

This commit is contained in:
Marco Rebhan 2024-01-29 12:22:12 +01:00
parent 26e71b5a5b
commit 522d660f25
No known key found for this signature in database

View file

@ -14,7 +14,7 @@ let
baseDir = "/run/dovecot2";
stateDir = "/var/lib/dovecot";
sieveScriptSettings = mapAttrs' (to: from: nameValuePair "sieve_${to}" "${stateDir}/sieve/${from}") cfg.sieve.scripts;
sieveScriptSettings = mapAttrs' (to: _: nameValuePair "sieve_${to}" "${stateDir}/sieve/${to}") cfg.sieve.scripts;
imapSieveMailboxSettings = listToAttrs (flatten (imap1 (idx: el:
singleton {
name = "imapsieve_mailbox${toString idx}_name";