wait_for_mailbox_changes
Open an IMAP IDLE session to watch for mailbox changes in real time. Blocks until a change or timeout, then returns whether a change was observed.
Instructions
Open an IMAP IDLE session and block until a mailbox change event arrives or the timeout expires. Use to detect real-time inbox activity without polling. Returns whether a change was observed. Always has a hard timeout (default 15s) to avoid blocking indefinitely — do not use in fire-and-forget pipelines.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| folder | No | Mailbox to watch during IDLE. | INBOX |
| timeoutSeconds | No | Maximum watch duration in seconds. |