Browse Source

melib/imap: hide LOGIN from debug log

jmap-eventsource
Manos Pitsidianakis 1 year ago
parent
commit
e556191bab
Signed by untrusted user: epilys GPG Key ID: 73627C2F690DF710
  1. 10
      melib/src/backends/imap/connection.rs

10
melib/src/backends/imap/connection.rs

@ -475,9 +475,13 @@ impl ImapStream {
self.stream.flush().await?;
match self.protocol {
ImapProtocol::IMAP { .. } => {
debug!("sent: M{} {}", self.cmd_id - 1, unsafe {
std::str::from_utf8_unchecked(command)
});
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 => {}
}

Loading…
Cancel
Save