melib/imap: hide LOGIN from debug log

jmap-eventsource
Manos Pitsidianakis 2020-09-24 12:16:50 +03:00
parent ce559b05d7
commit e556191bab
Signed by: Manos Pitsidianakis
GPG Key ID: 73627C2F690DF710
1 changed files with 7 additions and 3 deletions

View File

@ -475,9 +475,13 @@ impl ImapStream {
self.stream.flush().await?;
match self.protocol {
ImapProtocol::IMAP { .. } => {
if !command.starts_with(b"LOGIN") {
debug!("sent: M{} {}", self.cmd_id - 1, unsafe {
std::str::from_utf8_unchecked(command)
});
} else {
debug!("sent: M{} LOGIN ..", self.cmd_id - 1);
}
}
ImapProtocol::ManageSieve => {}
}