mirror of
https://gitlab.com/simple-nixos-mailserver/nixos-mailserver.git
synced 2024-12-28 07:56:12 +01:00
Declare default dovecot2 mailboxes as attrset for 20.09+
This commit is contained in:
parent
e2ed4541d4
commit
358cfcdfbe
1 changed files with 21 additions and 25 deletions
46
default.nix
46
default.nix
|
@ -307,31 +307,27 @@ in
|
||||||
The mailboxes for dovecot.
|
The mailboxes for dovecot.
|
||||||
Depending on the mail client used it might be necessary to change some mailbox's name.
|
Depending on the mail client used it might be necessary to change some mailbox's name.
|
||||||
'';
|
'';
|
||||||
default = [
|
default = let
|
||||||
{
|
defMailBoxes = {
|
||||||
name = "Trash";
|
Trash = {
|
||||||
auto = "no";
|
auto = "no";
|
||||||
specialUse = "Trash";
|
specialUse = "Trash";
|
||||||
}
|
};
|
||||||
|
Junk = {
|
||||||
{
|
auto = "subscribe";
|
||||||
name = "Junk";
|
specialUse = "Junk";
|
||||||
auto = "subscribe";
|
};
|
||||||
specialUse = "Junk";
|
Drafts = {
|
||||||
}
|
auto = "subscribe";
|
||||||
|
specialUse = "Drafts";
|
||||||
{
|
};
|
||||||
name = "Drafts";
|
Sent = {
|
||||||
auto = "subscribe";
|
auto = "subscribe";
|
||||||
specialUse = "Drafts";
|
specialUse = "Sent";
|
||||||
}
|
};
|
||||||
|
};
|
||||||
{
|
in if (versionAtLeast version "20.09pre") then defMailBoxes
|
||||||
name = "Sent";
|
else (flip mapAttrsToList defMailBoxes (name: options: { inherit name; } // options));
|
||||||
auto = "subscribe";
|
|
||||||
specialUse = "Sent";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
certificateScheme = mkOption {
|
certificateScheme = mkOption {
|
||||||
|
|
Loading…
Reference in a new issue