imap: don't send CRLF twice when sending LITERAL
This results in BAD IMAP errors, as a CRLF results in an empty command.
This commit is contained in:
parent
d7444a5b19
commit
2a0ad92374
1 changed files with 0 additions and 3 deletions
|
@ -369,9 +369,6 @@ impl ImapStream {
|
|||
|
||||
pub fn send_literal(&mut self, data: &[u8]) -> Result<()> {
|
||||
self.stream.write_all(data)?;
|
||||
if !data.ends_with(b"\r\n") {
|
||||
self.stream.write_all(b"\r\n")?;
|
||||
}
|
||||
self.stream.write_all(b"\r\n")?;
|
||||
Ok(())
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue