mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-04 03:43:55 +01:00
Prefer configuration from DNS records
The provider will know best and this will be faster
This commit is contained in:
@@ -144,14 +144,14 @@ public class EmailProvider {
|
||||
|
||||
static EmailProvider fromDomain(Context context, String domain) throws IOException {
|
||||
try {
|
||||
Log.i("Provider from ISPDB domain=" + domain);
|
||||
return addSpecials(context, fromISPDB(domain));
|
||||
} catch (Throwable ex) {
|
||||
Log.i("Provider from DNS domain=" + domain);
|
||||
return addSpecials(context, fromDNS(domain));
|
||||
} catch (UnknownHostException ex) {
|
||||
Log.w(ex);
|
||||
try {
|
||||
Log.i("Provider from DNS domain=" + domain);
|
||||
return addSpecials(context, fromDNS(domain));
|
||||
} catch (UnknownHostException ex1) {
|
||||
Log.i("Provider from ISPDB domain=" + domain);
|
||||
return addSpecials(context, fromISPDB(domain));
|
||||
} catch (Throwable ex1) {
|
||||
Log.w(ex1);
|
||||
try {
|
||||
Log.i("Provider from template domain=" + domain);
|
||||
|
||||
Reference in New Issue
Block a user