diff options
author | Reno Reckling <exi@wthack.de> | 2024-01-19 01:21:07 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-19 01:21:07 +0100 |
commit | 1e4065d90a1594746c313965f77d2d464470e0c1 (patch) | |
tree | 3ff8e4e0e14c7638f7f216a52760a4023714fd1e /nixos/modules/services/mail | |
parent | 842d9d80cfd4560648c785f8a4e6f3b096790e19 (diff) | |
download | nixlib-1e4065d90a1594746c313965f77d2d464470e0c1.tar nixlib-1e4065d90a1594746c313965f77d2d464470e0c1.tar.gz nixlib-1e4065d90a1594746c313965f77d2d464470e0c1.tar.bz2 nixlib-1e4065d90a1594746c313965f77d2d464470e0c1.tar.lz nixlib-1e4065d90a1594746c313965f77d2d464470e0c1.tar.xz nixlib-1e4065d90a1594746c313965f77d2d464470e0c1.tar.zst nixlib-1e4065d90a1594746c313965f77d2d464470e0c1.zip |
Do not include sieve_extensions and sieve_global_extensions if they are the default value
Setting them to empty string will disable the default behaviour, leading to missing extensions.
Diffstat (limited to 'nixos/modules/services/mail')
-rw-r--r-- | nixos/modules/services/mail/dovecot.nix | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/services/mail/dovecot.nix b/nixos/modules/services/mail/dovecot.nix index 25c7017a1d25..58303565c53b 100644 --- a/nixos/modules/services/mail/dovecot.nix +++ b/nixos/modules/services/mail/dovecot.nix @@ -119,9 +119,10 @@ let '' plugin { sieve_plugins = ${concatStringsSep " " cfg.sieve.plugins} - sieve_extensions = ${concatStringsSep " " (map (el: "+${el}") cfg.sieve.extensions)} - sieve_global_extensions = ${concatStringsSep " " (map (el: "+${el}") cfg.sieve.globalExtensions)} '' + (optionalString (cfg.sieve.extensions != []) ''sieve_extensions = ${concatStringsSep " " (map (el: "+${el}") cfg.sieve.extensions)}'') + (optionalString (cfg.sieve.globalExtensions != []) ''sieve_global_extensions = ${concatStringsSep " " (map (el: "+${el}") cfg.sieve.globalExtensions)}'') + (optionalString (cfg.imapsieve.mailbox != []) '' ${ concatStringsSep "\n" (flatten (imap1 ( |