|
|
@ -554,7 +554,13 @@ public class EmailProvider implements Parcelable {
|
|
|
|
if (provider.enabled &&
|
|
|
|
if (provider.enabled &&
|
|
|
|
provider.imap.host.equals(candidate.imap.host) ||
|
|
|
|
provider.imap.host.equals(candidate.imap.host) ||
|
|
|
|
provider.smtp.host.equals(candidate.smtp.host)) {
|
|
|
|
provider.smtp.host.equals(candidate.smtp.host)) {
|
|
|
|
EntityLog.log(context, "Replacing auto config by profile=" + provider.name);
|
|
|
|
EntityLog.log(context, "Replacing auto config host by profile=" + provider.name);
|
|
|
|
|
|
|
|
return Arrays.asList(provider);
|
|
|
|
|
|
|
|
} else if (provider.enabled && provider.mx != null)
|
|
|
|
|
|
|
|
for (String mx : provider.mx)
|
|
|
|
|
|
|
|
if ((candidate.imap.host != null && candidate.imap.host.matches(mx)) ||
|
|
|
|
|
|
|
|
(candidate.smtp.host != null && candidate.smtp.host.matches(mx))) {
|
|
|
|
|
|
|
|
EntityLog.log(context, "Replacing auto config MC by profile=" + provider.name);
|
|
|
|
return Arrays.asList(provider);
|
|
|
|
return Arrays.asList(provider);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|