From edec6cada669693dce2fe93bd82400f313bcc713 Mon Sep 17 00:00:00 2001 From: "B. Petersen" Date: Mon, 21 Oct 2019 23:46:01 +0200 Subject: [PATCH] reconnect on io errors and broken pipes --- src/imap.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/imap.rs b/src/imap.rs index 12dc6a67e..ef69ee2d4 100644 --- a/src/imap.rs +++ b/src/imap.rs @@ -1025,7 +1025,7 @@ impl Imap { info!(context, "IMAP-IDLE has data."); } Err(err) => match err { - imap::error::Error::ConnectionLost => { + imap::error::Error::Io(_) | imap::error::Error::ConnectionLost => { info!(context, "IMAP-IDLE wait cancelled, we will reconnect soon."); self.should_reconnect.store(true, Ordering::Relaxed); }