dovecot: fix config if mailboxes == []

This commit is contained in:
Robin Gloster 2017-11-14 16:49:00 +01:00
parent 50103ecdbb
commit 9181faac41
No known key found for this signature in database
GPG Key ID: D5C458DF6DD97EDF
1 changed files with 2 additions and 2 deletions

View File

@ -62,14 +62,14 @@ let
} }
'') '')
'' (optionalString (cfg.mailboxes != []) ''
protocol imap { protocol imap {
namespace inbox { namespace inbox {
inbox=yes inbox=yes
${concatStringsSep "\n" (map mailboxConfig cfg.mailboxes)} ${concatStringsSep "\n" (map mailboxConfig cfg.mailboxes)}
} }
} }
'' '')
(optionalString cfg.enableQuota '' (optionalString cfg.enableQuota ''
mail_plugins = $mail_plugins quota mail_plugins = $mail_plugins quota