Fix quoting issue in LIST command
This commit is contained in:
parent
ba09886e3b
commit
b35823da7c
1 changed files with 1 additions and 1 deletions
|
|
@ -895,7 +895,7 @@ impl<T: Read + Write> Session<T> {
|
||||||
) -> ZeroCopyResult<Vec<Name>> {
|
) -> ZeroCopyResult<Vec<Name>> {
|
||||||
self.run_command_and_read_response(&format!(
|
self.run_command_and_read_response(&format!(
|
||||||
"LIST {} {}",
|
"LIST {} {}",
|
||||||
quote!(reference_name.unwrap_or("\"\"")),
|
quote!(reference_name.unwrap_or("")),
|
||||||
mailbox_pattern.unwrap_or("\"\"")
|
mailbox_pattern.unwrap_or("\"\"")
|
||||||
))
|
))
|
||||||
.and_then(|lines| parse_names(lines, &mut self.unsolicited_responses_tx))
|
.and_then(|lines| parse_names(lines, &mut self.unsolicited_responses_tx))
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue