Merge pull request #119 from NickeZ/list-quoting-fix

Fix quoting issue in LIST command
This commit is contained in:
Jon Gjengset 2019-04-28 19:12:27 -04:00 committed by GitHub
commit d4287c907d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -895,7 +895,7 @@ impl<T: Read + Write> Session<T> {
) -> ZeroCopyResult<Vec<Name>> {
self.run_command_and_read_response(&format!(
"LIST {} {}",
quote!(reference_name.unwrap_or("\"\"")),
quote!(reference_name.unwrap_or("")),
mailbox_pattern.unwrap_or("\"\"")
))
.and_then(|lines| parse_names(lines, &mut self.unsolicited_responses_tx))