From b55027fe713bb1df7d8571865e381492f92534bd Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 9 Oct 2023 01:42:57 +0000 Subject: [PATCH] fix: set connectivity status to "connected" during fake idle Set connectivity status to "connected" at the end of connect() call. Otherwise for servers that do not support IMAP IDLE connect() is called at the beginning of fake idle and connectivity stays in "connecting" status most of the time. --- src/imap.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/imap.rs b/src/imap.rs index 96740a070..8f009f8ba 100644 --- a/src/imap.rs +++ b/src/imap.rs @@ -391,6 +391,7 @@ impl Imap { "IMAP-LOGIN as {}", self.config.lp.user ))); + self.connectivity.set_connected(context).await; info!(context, "Successfully logged into IMAP server"); Ok(()) }