1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

fix(mail): msmtp passwordeval

This commit is contained in:
2020-10-19 18:57:07 +02:00
parent 8ee09997a4
commit fc1a794455

View File

@@ -21,7 +21,8 @@ let
}
];
pass_ = file: "echo ${lib.escapeShellArg (lib.strings.fileContents file)}";
# turns out we have to escape $ because, if the password contains a $, it will get interpolated as a variable by the msmtp `passwordeval` which does: `bash -c "COMMAND; echo"`
pass_ = file: "echo ${lib.escape ["$"] (lib.escapeShellArg (lib.strings.fileContents file))}";
generateTaggingScript = filters:
let