Skip to content

fix(imap): prefer login errors over connection errors - #8553

Open
subotac wants to merge 1 commit into
chatmail:mainfrom
subotac:fix/configuration-auth-errors
Open

fix(imap): prefer login errors over connection errors#8553
subotac wants to merge 1 commit into
chatmail:mainfrom
subotac:fix/configuration-auth-errors

Conversation

@subotac

@subotac subotac commented Aug 7, 2026

Copy link
Copy Markdown

Closes #8534.

Adds a regression test for the error precedence.

@Hocuri Hocuri left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks! I created #8589 to let the tests run.

Comment thread src/imap.rs
}

Err(first_error.unwrap_or_else(|| format_err!("No IMAP connection candidates provided")))
Err(select_connect_error(

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function can be inlined, splitting it outside of this function to have a test only makes it harder to follow the logic.

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.

nicer_configuration_errors() hides authentication failures

3 participants