Open
Description
Delta Chat attempts to interrupt IDLE every 5 minutes:
https://github.com/deltachat/deltachat-core-rust/blob/81e9628ab79941adaa12de1e30cefb8d8d69b3f9/src/imap/idle.rs#L14-L20
However, this does not seem to happen because monotonic clock used almost everywhere does not advance when the app is suspended and boottime clocks which should be used instead are not available in Rust yet:
- Provide boottime timers tokio-rs/tokio#3185
- Android: Instant not advancing while the screen is off rust-lang/rust#71860
- Use CLOCK_BOOTTIME for Instant in Fuchsia/Android rust-lang/rust#132331
FairEmail apparently does not have such problems, but it is using Java APIs everywhere:
#6532 (comment)
The bug can be worked around by reducing imap_idle_notify_interval
in Dovecot, but we need a fix on the client side:
#6532 (comment)