fix(transport-sendmail): Stop argument parsing before destination addresses

This commit is contained in:
Alexis Mousset
2020-11-11 16:43:09 +01:00
committed by Alexis Mousset
parent b187885e70
commit aa31e4fff6

View File

@@ -120,6 +120,7 @@ impl SendmailTransport {
c.arg("-i")
.arg("-f")
.arg(envelope.from().map(|f| f.as_ref()).unwrap_or("\"\""))
.arg("--")
.args(envelope.to())
.stdin(Stdio::piped())
.stdout(Stdio::piped());
@@ -135,6 +136,7 @@ impl SendmailTransport {
c.arg("-i")
.arg("-f")
.arg(envelope.from().map(|f| f.as_ref()).unwrap_or("\"\""))
.arg("--")
.args(envelope.to())
.stdin(Stdio::piped())
.stdout(Stdio::piped());
@@ -150,6 +152,7 @@ impl SendmailTransport {
c.arg("-i")
.arg("-f")
.arg(envelope.from().map(|f| f.as_ref()).unwrap_or("\"\""))
.arg("--")
.args(envelope.to())
.stdin(Stdio::piped())
.stdout(Stdio::piped());