pimalaya / himalaya

CLI to manage emails
https://pimalaya.org
MIT License
3.17k stars 95 forks source link

IMAP `CLOSE` and `CHECK` command being invoked when no mailbox is selected #458

Closed titanism closed 9 months ago

titanism commented 11 months ago

Per my findings with WildDuck, it appears that himalaya account sync is calling CLOSE and CHECK when no mailbox is selected. Not sure if this is just a WildDuck issue, but I don't think it should be trying to invoke these commands if no mailbox is selected.

Ref:

soywod commented 11 months ago

It appears that himalaya account sync is calling CLOSE and CHECK when no mailbox is selected.

Actually we are using the imap crate, and the public API does not expose clearly the state of a mailbox. I recently discussed about it with the author of https://github.com/duesee/imap-flow, and he plans to design a better API. Since we plan to migrate from imap to imap-flow, this issue should disappear by itself!

soywod commented 9 months ago

I close the issue, as it should resolve by itself the day we migrate to imap-flow.