Skip to content

Commit

Permalink
dovecot: fix config if mailboxes == []
Browse files Browse the repository at this point in the history
  • Loading branch information
globin committed Nov 14, 2017
1 parent 50103ec commit 9181faa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/mail/dovecot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ let
}
'')

''
(optionalString (cfg.mailboxes != []) ''
protocol imap {
namespace inbox {
inbox=yes
${concatStringsSep "\n" (map mailboxConfig cfg.mailboxes)}
}
}
''
'')

(optionalString cfg.enableQuota ''
mail_plugins = $mail_plugins quota
Expand Down

0 comments on commit 9181faa

Please sign in to comment.