mirror of https://github.com/M66B/FairEmail.git
Match provider by encryption method too
This commit is contained in:
parent
f2233cf9e9
commit
a9a5ca6077
|
@ -1142,7 +1142,8 @@ public class FragmentAccount extends FragmentBase {
|
|||
for (int pos = 2; pos < providers.size(); pos++) {
|
||||
EmailProvider provider = providers.get(pos);
|
||||
if (provider.imap_host.equals(account.host) &&
|
||||
provider.imap_port == account.port) {
|
||||
provider.imap_port == account.port &&
|
||||
provider.imap_starttls == account.starttls) {
|
||||
found = true;
|
||||
spProvider.setTag(pos);
|
||||
spProvider.setSelection(pos);
|
||||
|
|
|
@ -231,7 +231,8 @@ public class FragmentIdentity extends FragmentBase {
|
|||
for (int pos = 1; pos < spProvider.getAdapter().getCount(); pos++) {
|
||||
EmailProvider provider = (EmailProvider) spProvider.getItemAtPosition(pos);
|
||||
if (provider.imap_host.equals(account.host) &&
|
||||
provider.imap_port == account.port) {
|
||||
provider.imap_port == account.port &&
|
||||
provider.imap_starttls == account.starttls) {
|
||||
found = true;
|
||||
|
||||
spProvider.setSelection(pos);
|
||||
|
@ -925,7 +926,8 @@ public class FragmentIdentity extends FragmentBase {
|
|||
for (int pos = 1; pos < providers.size(); pos++) {
|
||||
EmailProvider provider = providers.get(pos);
|
||||
if (provider.smtp_host.equals(identity.host) &&
|
||||
provider.smtp_port == identity.port) {
|
||||
provider.smtp_port == identity.port &&
|
||||
provider.smtp_starttls == identity.starttls) {
|
||||
spProvider.setTag(pos);
|
||||
spProvider.setSelection(pos);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue