IMAP connection diagnostics for Riot settings
Riot App Settings now show which stage of a saved IMAP connection test passed or failed. A failed test includes specific guidance, such as renewing an expired TLS certificate, without exposing mailbox credentials or raw server replies.
Added
- Connection reports cover DNS, TCP, TLS, IMAP protocol negotiation, authentication, and mailbox selection, with each stage's result and duration. Stages after a failure are marked as skipped.
- IMAP test API responses include an optional
diagnosticsreport on success and failure. Existing success fields and themail_probe_failederror remain available.
Changed
- Tests retain a 15-second overall limit and full TLS certificate validation. They use the saved configuration and select the mailbox read-only; they do not search, fetch, or mark messages as read, retrieve login codes, or prove successful Riot login.
- A server-preauthenticated connection is identified separately: the saved username and password were not checked. The mailbox reader uses that authenticated session without sending a duplicate login.
- Older backends without a stage report continue to show the existing general test result. Detailed results use fixed error categories and recovery guidance rather than raw protocol or certificate data.