Skip to content

Fix IMAP connection errors incorrectly reported as authentication failures - #2164

Open
stefansieg wants to merge 1 commit into
the-djmaze:masterfrom
stefansieg:Fix-IMAP-connection-errors-incorrectly-reported-as-authentication-failures
Open

stefansieg wants to merge 1 commit into
the-djmaze:masterfrom
stefansieg:Fix-IMAP-connection-errors-incorrectly-reported-as-authentication-failures

Conversation

@stefansieg

Copy link
Copy Markdown

Handle socket read, read timeout and write exceptions as connection errors in initMailClientConnection(), consistent with the existing exception handling in UserAuth.php.

Manually tested with SnappyMail 3.1.4 using a local IMAP proxy simulating:

  • Connection closed before the IMAP greeting.
  • Read timeout while waiting for the IMAP greeting.

Both cases now return ConnectionError[104] instead of AuthError[102].

Addresses #2078.

LLM-assisted code analysis. Tests were performed manually.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant