diff --git a/modules/programs/msmtp.nix b/modules/programs/msmtp.nix index 7b6704860..7357b615b 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}'');