mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-27 11:25:13 +01:00
Check for providers with a proprietary protocol
This commit is contained in:
@@ -80,6 +80,15 @@ public class EmailProvider {
|
||||
private static final int SCAN_TIMEOUT = 5 * 1000; // milliseconds
|
||||
private static final int ISPDB_TIMEOUT = 15 * 1000; // milliseconds
|
||||
|
||||
private static final List<String> PROPRIETARY = Collections.unmodifiableList(Arrays.asList(
|
||||
"protonmail.ch",
|
||||
"protonmail.com",
|
||||
"tutanota.com",
|
||||
"tutanota.de",
|
||||
"tutamail.com", // tutanota
|
||||
"tuta.io", // tutanota
|
||||
"keemailme" // tutanota
|
||||
));
|
||||
private static final ExecutorService executor =
|
||||
Helper.getBackgroundExecutor(0, "provider");
|
||||
|
||||
@@ -194,6 +203,9 @@ public class EmailProvider {
|
||||
if (at < 0)
|
||||
email = "someone@" + domain;
|
||||
|
||||
if (PROPRIETARY.contains(domain))
|
||||
throw new IllegalArgumentException(context.getString(R.string.title_no_standard));
|
||||
|
||||
List<EmailProvider> providers = loadProfiles(context);
|
||||
for (EmailProvider provider : providers)
|
||||
if (provider.domain != null)
|
||||
|
||||
Reference in New Issue
Block a user