Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use default server list for providers that don't have one #5946

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

link2xt
Copy link
Collaborator

@link2xt link2xt commented Sep 2, 2024

There are providers in the provider database
that do not have servers specified.
For such providers default list should be tried
just like when configuring unknown providers.

Closes #5937

There are providers in the provider database
that do not have servers specified.
For such providers default list should be tried
just like when configuring unknown providers.
ServerParams {
protocol: Protocol::Imap,
hostname: context
.get_config(Config::ConfiguredMailServer)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Shouldn't ConfiguredImapServers/ConfiguredSmtpServers be used instead? ConfiguredMailServer is legacy and reset to None in save_as_configured_params()

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is for legacy configurations, so they keep using configured servers. They will not benefit from autoreconfiguration, but I am not sure trying potentially non-existing domains is better. For new setups this will be empty and expanded into example.org, mail.example.org and imap.example.org, so autoreconfiguration will try all options.

@link2xt link2xt merged commit 0a46e64 into main Sep 2, 2024
37 checks passed
@link2xt link2xt deleted the link2xt/provider-no-empty-server-list branch September 2, 2024 22:57
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.

Providers with empty server list should attempt to use the default list
2 participants