Skip to content

Commit

Permalink
fix: set connectivity status to "connected" during fake idle
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
link2xt committed Oct 10, 2023
1 parent eacbb82 commit b55027f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/imap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(())
}
Expand Down

0 comments on commit b55027f

Please sign in to comment.