mirror of
https://github.com/chatmail/core.git
synced 2026-04-02 05:22:14 +03:00
imap: log disconnection attempts
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user