mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-31 11:31:40 +00:00
Prefer configuration from DNS records
The provider will know best and this will be faster
This commit is contained in:
parent
561c628817
commit
745f78206e
1 changed files with 6 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue