Skip to content

Commit

Permalink
mbsync: support maildir paths containing spaces
Browse files Browse the repository at this point in the history
HM would previously create several folders instead of just one with the space escaped.
Fixes #6569
  • Loading branch information
KarlJoad authored Mar 4, 2025
1 parent 6f71acf commit b1b964e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/programs/mbsync.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
'';
};
Expand Down

0 comments on commit b1b964e

Please sign in to comment.