Skip to content

fix!: IMAP IDLE behavior#433

Merged
andrinoff merged 1 commit intofloatpane:masterfrom
andrinoff:fix/imap-idle-issues
Mar 31, 2026
Merged

fix!: IMAP IDLE behavior#433
andrinoff merged 1 commit intofloatpane:masterfrom
andrinoff:fix/imap-idle-issues

Conversation

@andrinoff
Copy link
Copy Markdown
Member

What?

Skip IMAP IDLE for accounts that don't have the selected folder, and make IDLE stop/restart non-blocking so it doesn't freeze the UI.

Why?

When switching to a folder that only some accounts have, IDLE was started for every account — causing repeated "no such mailbox" errors for accounts missing that folder. Additionally, all IDLE stop/restart operations blocked on the UI goroutine waiting for IMAP connections to gracefully close, which takes seconds per connection and froze the app on folder switches and quit.

Signed-off-by: drew <me@andrinoff.com>
@andrinoff andrinoff requested a review from a team as a code owner March 31, 2026 07:14
@github-actions github-actions bot added the bug Something isn't working label Mar 31, 2026
@andrinoff andrinoff merged commit 9945814 into floatpane:master Mar 31, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant