fix (transport): Sendmail transport: Fix to-list manipulation

Use the `to_addresses` Vec as a separate `args` entry.
This commit is contained in:
aston
2018-05-22 10:53:00 +03:00
parent 964b9dc00b
commit 4f9067f258

View File

@@ -49,8 +49,8 @@ impl<'a> Transport<'a> for SendmailTransport {
Some(address) => address.to_string(),
None => "\"\"".to_string(),
},
&to_addresses.join(" "),
])
.args(&to_addresses)
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.spawn()?;