Now that Microsoft mandates OAuth authentication, they will disconnect IMAP connections after 1 hour when the OAuth token expires - which, as far as I'm concerned, is a violation of RFC 3501.
[2024-11-21 19:39:31.653] DEBUG[1398990]: imap_client.c:147 imap_poll: Polling 14 fds for IMAP session 0x7fdea3ffc5d0 (for 16s)
[2024-11-21 19:39:35.564] DEBUG[1398989]: net_ws.c:998 ws_handler: WebSocket 'TEXT' frame received
[2024-11-21 19:39:35.564] DEBUG[1398989]: mod_webmail.c:3233 idle_stop: Stopping IDLE
[2024-11-21 19:39:35.564] DEBUG[1398990]: imap_client.c:186 imap_poll: IMAP poll returned 1 for main IMAP client
[2024-11-21 19:39:35.611] DEBUG[1398990]: tcp.c:111 bbs_tcp_client_expect: <= * BYE Session invalidated - AccessTokenExpired
Currently, if our client is idling on this folder when this happens, this will be handled as a failure and cause disconnect. Ideally, we would process * BYE Session invalidated
accordingly by automatically re-establishing a new IMAP client connection to the remote server transparently.
You must be