mbsync: support maildir paths containing spaces

HM would previously create several folders instead of just one with the space escaped.
Fixes https://github.com/nix-community/home-manager/issues/6569
This commit is contained in:
Karl H 2025-03-04 16:51:00 -06:00 committed by GitHub
parent 6f71acf71b
commit b1b964ea93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -288,7 +288,8 @@ in {
createMaildir =
hm.dag.entryBetween [ "linkGeneration" ] [ "writeBoundary" ] ''
run mkdir -m700 -p $VERBOSE_ARG ${
concatMapStringsSep " " (a: a.maildir.absPath) mbsyncAccounts
concatMapStringsSep " " (a: escapeShellArg a.maildir.absPath)
mbsyncAccounts
}
'';
};