Provider order

This commit is contained in:
M66B
2020-09-07 17:17:48 +02:00
parent b9bf22e434
commit a959e70733
3 changed files with 7 additions and 5 deletions

View File

@@ -1195,7 +1195,8 @@ public class FragmentIdentity extends FragmentBase {
if (identity != null)
for (int pos = 1; pos < providers.size(); pos++) {
EmailProvider provider = providers.get(pos);
if (provider.smtp.host.equals(identity.host) &&
if ((provider.oauth != null) == (identity.auth_type == EmailService.AUTH_TYPE_OAUTH) &&
provider.smtp.host.equals(identity.host) &&
provider.smtp.port == identity.port &&
provider.smtp.starttls == (identity.encryption == EmailService.ENCRYPTION_STARTTLS)) {
spProvider.setTag(pos);