mirror of
https://github.com/chatmail/core.git
synced 2026-05-07 08:56:30 +03:00
imap: log disconnection attempts
This commit is contained in:
@@ -494,6 +494,8 @@ impl Imap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async fn disconnect(&mut self, context: &Context) {
|
async fn disconnect(&mut self, context: &Context) {
|
||||||
|
info!(context, "disconnecting");
|
||||||
|
|
||||||
// Close folder if messages should be expunged
|
// Close folder if messages should be expunged
|
||||||
if let Err(err) = self.close_folder(context).await {
|
if let Err(err) = self.close_folder(context).await {
|
||||||
warn!(context, "failed to close folder: {:?}", err);
|
warn!(context, "failed to close folder: {:?}", err);
|
||||||
|
|||||||
Reference in New Issue
Block a user