mbsync: skip maildir creation if no account is defined

Fixes #937

(cherry picked from commit 621c98f15a)
This commit is contained in:
Robert Helgesson 2019-12-08 21:46:30 +01:00
parent 9e69b0d8b9
commit 829b688827
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -178,11 +178,13 @@ in
++ groupsConfig ++ groupsConfig
) + "\n"; ) + "\n";
home.activation.createMaildir = home.activation = mkIf (mbsyncAccounts != []) {
dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] '' createMaildir =
$DRY_RUN_CMD mkdir -m700 -p $VERBOSE_ARG ${ dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] ''
concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts $DRY_RUN_CMD mkdir -m700 -p $VERBOSE_ARG ${
} concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts
''; }
'';
};
}; };
} }