summaryrefslogtreecommitdiffstats
path: root/melib
diff options
context:
space:
mode:
authorManos Pitsidianakis <el13635@mail.ntua.gr>2020-09-24 12:16:50 +0300
committerManos Pitsidianakis <el13635@mail.ntua.gr>2020-09-24 12:16:50 +0300
commite556191babcbb773a4744aeded0123a8b21791f4 (patch)
treeecafff0179d2906a0df61124a1f5a6812cbd0f4b /melib
parentce559b05d7d775b43311aa8affe8c5f9a56aa5d2 (diff)
melib/imap: hide LOGIN from debug log
Diffstat (limited to 'melib')
-rw-r--r--melib/src/backends/imap/connection.rs10
1 files changed, 7 insertions, 3 deletions
diff --git a/melib/src/backends/imap/connection.rs b/melib/src/backends/imap/connection.rs
index b9bc33bf..f7fb9d77 100644
--- a/melib/src/backends/imap/connection.rs
+++ b/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 => {}
}