imap: log disconnection attempts

This commit is contained in:
link2xt
2022-11-13 16:10:24 +00:00
parent 43f2d64a6f
commit 33839b5667

View File

@@ -494,6 +494,8 @@ impl Imap {
}
async fn disconnect(&mut self, context: &Context) {
info!(context, "disconnecting");
// Close folder if messages should be expunged
if let Err(err) = self.close_folder(context).await {
warn!(context, "failed to close folder: {:?}", err);