Lately, I've been noticing that Microsoft client proxies frequently fail. Seems to be due to a bug with how we're parsing the capabilities responses:
[2024-08-03 09:24:50.630] DEBUG[551614]: io_tls.c:804 ssl_client_new: TLS SN: /C=US/ST=Washington/L=Redmond/O=Microsoft Corporation/CN=outlook.com
[2024-08-03 09:24:50.630] DEBUG[551614]: io_tls.c:811 ssl_client_new: TLS Issuer: /C=US/O=DigiCert Inc/CN=DigiCert Cloud Services CA-1
[2024-08-03 09:24:50.630] DEBUG[551614]: io_tls.c:819 ssl_client_new: TLS verification successful 0x7fbe5000ae20
[2024-08-03 09:24:50.630] DEBUG[551614]: io.c:170 io_transform_store: Set up node I/O transformer at index 0
[2024-08-03 09:24:50.630] DEBUG[551614]: tcp.c:58 bbs_tcp_client_connect: Implicit TLS completed
...
[2024-08-03 09:24:50.657] DEBUG[551614]: tcp.c:107 bbs_tcp_client_expect: <= * CAPABILITY IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
[2024-08-03 09:24:50.657] DEBUG[551614]: mod_mail.c:1717 imap_client_capability: Capabilities: IMAP4 IMAP4rev1 AUTH=PLAIN AUTH=XOAUTH2 SASL-IR UIDPLUS ID UNSELECT CHILDREN IDLE NAMESPACE LITERAL+
[2024-08-03 09:24:50.657] DEBUG[551614]: tcp.c:107 bbs_tcp_client_expect: <= a0 OK CAPABILITY completed.
...
[2024-08-03 09:24:53.114] DEBUG[551614]: readline.c:151 bbs_readline: bbs_poll_read returned -1
[2024-08-03 09:24:53.114] DEBUG[551614]: mod_mail.c:1903 imap_client_login: Didn't receive expected 'a1 OK'
[2024-08-03 09:24:53.114] DEBUG[551614]: imap_client.c:45 client_destroy: Destroying IMAP client...
You must be