Declare default dovecot2 mailboxes as attrset for 20.09+
This commit is contained in:
parent
e2ed4541d4
commit
358cfcdfbe
30
default.nix
30
default.nix
|
@ -307,31 +307,27 @@ in
|
|||
The mailboxes for dovecot.
|
||||
Depending on the mail client used it might be necessary to change some mailbox's name.
|
||||
'';
|
||||
default = [
|
||||
{
|
||||
name = "Trash";
|
||||
default = let
|
||||
defMailBoxes = {
|
||||
Trash = {
|
||||
auto = "no";
|
||||
specialUse = "Trash";
|
||||
}
|
||||
|
||||
{
|
||||
name = "Junk";
|
||||
};
|
||||
Junk = {
|
||||
auto = "subscribe";
|
||||
specialUse = "Junk";
|
||||
}
|
||||
|
||||
{
|
||||
name = "Drafts";
|
||||
};
|
||||
Drafts = {
|
||||
auto = "subscribe";
|
||||
specialUse = "Drafts";
|
||||
}
|
||||
|
||||
{
|
||||
name = "Sent";
|
||||
};
|
||||
Sent = {
|
||||
auto = "subscribe";
|
||||
specialUse = "Sent";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
in if (versionAtLeast version "20.09pre") then defMailBoxes
|
||||
else (flip mapAttrsToList defMailBoxes (name: options: { inherit name; } // options));
|
||||
};
|
||||
|
||||
certificateScheme = mkOption {
|
||||
|
|
Loading…
Reference in New Issue