Skip to content

v2.0.2

Latest

Choose a tag to compare

@arvarik arvarik released this 19 Oct 00:58
· 2 commits to main since this release
fd78e39

Contrack 2.0.2 fixes connector authentication handling so failed remote credential checks never sign out the browser session, surfaces the IMAP server's actual refusal message instead of Command failed, and saves new mailboxes when an IMAP server is temporarily busy or down for maintenance (#245, #246, #247).

Fixed

  • Connectors & session handling (#245, #246):
    • Only treat 401 UNAUTHORIZED (or an unlabelled 401) as an expired Contrack session in the browser API client, keeping route-specific 401 codes (INVALID_CREDENTIALS, CONNECTOR_AUTH_ERROR, PASSKEY_VERIFICATION_FAILED) as form-level errors without logging the user out.
    • Return HTTP 400 CONNECTOR_AUTH_ERROR instead of 401 when remote connector credentials fail validation during POST /api/connectors/test, POST /api/connectors, or PATCH /api/connectors/:id, while still transitioning background sync failures on ConnectorAuthError to needs_reauth.
  • IMAP error messages & temporary server refusals (#245, #246, #247):
    • Surface the IMAP server's human-readable responseText (or response code) instead of imapflow's generic Command failed message when LOGIN or connection commands are rejected.
    • Classify RFC 5530 temporary LOGIN response codes (UNAVAILABLE, INUSE, LIMIT, SERVERBUG, OVERQUOTA) and Gmail connection-limit alerts (Too many simultaneous connections) as 503 CONNECTOR_UNAVAILABLE rather than wrong credentials, saving the mailbox in error state to retry on the next sync interval and clearing the error state once a password check succeeds.

Full Changelog: v2.0.1...v2.0.2