Skip to content

FEAT: Implement IMAP IDLE timeout detection per RFC 2177 #920

@andrinoff

Description

@andrinoff

Is your feature request related to a problem?

IDLE connections don't detect server-side timeouts. RFC 2177 allows servers to drop IDLE after 29 minutes. Current code (fetcher/idle.go) has exponential backoff but no proactive timeout detection or heartbeat.

Describe the solution you'd like

  • Add configurable IDLE timeout (default 25 min per RFC recommendation)
  • Send DONE + re-IDLE before server timeout
  • Detect network interruptions via TCP keepalive
  • Implement fallback to polling when IDLE is unsupported or unreliable
  • Add per-server IDLE capability detection

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestneeds-responseWaiting on issue author replystaleNo activity for extended period

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions