aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJos van Bakel <jos@codeaddict.org>2020-12-09 09:22:00 +0100
committerGitHub <noreply@github.com>2020-12-09 09:22:00 +0100
commite3828769e877b1869129a3816515a8c0ea454977 (patch)
tree037bcb3537358163981bcfdc6581175ec0fd4034
parent275d1b52126674764f0f3d15c73c2add511bd310 (diff)
msmtp: fix passwordeval (#1643)
msmtp fails with broken pipe error when sending emails. The new line after the password is not required anymore since msmtp 1.8.0.
-rw-r--r--modules/programs/msmtp.nix3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/programs/msmtp.nix b/modules/programs/msmtp.nix
index 7b6704860e0c..7357b615b1da 100644
--- a/modules/programs/msmtp.nix
+++ b/modules/programs/msmtp.nix
@@ -26,9 +26,8 @@ let
tls_fingerprint = msmtp.tls.fingerprint;
} // optionalAttrs (smtp.port != null) { port = toString smtp.port; }
// optionalAttrs (passwordCommand != null) {
- # msmtp requires the password to finish with a newline.
passwordeval =
- ''${pkgs.bash}/bin/bash -c "${toString passwordCommand}; echo"'';
+ ''${pkgs.bash}/bin/bash -c "${toString passwordCommand}"'';
} // msmtp.extraConfig) ++ optional primary ''
account default : ${name}'');