feat: add more IMAP logging

E.g. log when the folder is selected.
This commit is contained in:
link2xt
2025-05-18 23:02:49 +00:00
committed by l
parent 53fa0147ae
commit 877f873910
4 changed files with 35 additions and 21 deletions

View File

@@ -324,7 +324,7 @@ impl Imap {
}
}
info!(context, "Connecting to IMAP server");
info!(context, "Connecting to IMAP server.");
self.connectivity.set_connecting(context).await;
self.conn_last_try = tools::Time::now();
@@ -409,7 +409,7 @@ impl Imap {
lp.user
)));
self.connectivity.set_preparing(context).await;
info!(context, "Successfully logged into IMAP server");
info!(context, "Successfully logged into IMAP server.");
return Ok(session);
}
@@ -1046,7 +1046,7 @@ impl Session {
// Expunge folder if needed, e.g. if some jobs have
// deleted messages on the server.
if let Err(err) = self.maybe_close_folder(context).await {
warn!(context, "failed to close folder: {:?}", err);
warn!(context, "Failed to close folder: {err:#}.");
}
Ok(())