IMAP IDLE lets a client keep a connection open and receive notifications about mailbox changes instead of repeatedly polling.

The server advertises IDLE support as a capability. Clients still need reconnect and resynchronization logic because long-lived network connections fail.

Reference material