mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-29 03:05:31 +00:00
Yahoo
This commit is contained in:
parent
af1d00a27e
commit
ae373ac337
1 changed files with 6 additions and 4 deletions
|
@ -322,10 +322,12 @@ public class ContactInfo {
|
||||||
"googlemail.com".equals(d))
|
"googlemail.com".equals(d))
|
||||||
d = "support.google.com";
|
d = "support.google.com";
|
||||||
|
|
||||||
// https://yahoo.fr redirects unsafely to http://fr.yahoo.com/favicon.ico
|
// https://yahoo.fr/co.uk redirects unsafely to http://fr.yahoo.com/favicon.ico
|
||||||
String[] dparts = d.split("\\.");
|
for (String yahoo : d.split("\\."))
|
||||||
if (dparts.length > 1 && "yahoo".equals(dparts[dparts.length - 2]))
|
if ("yahoo".equals(yahoo)) {
|
||||||
d = "yahoo.com";
|
d = "yahoo.com";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
final String domain = d.toLowerCase(Locale.ROOT);
|
final String domain = d.toLowerCase(Locale.ROOT);
|
||||||
final String email = info.email.toLowerCase(Locale.ROOT);
|
final String email = info.email.toLowerCase(Locale.ROOT);
|
||||||
|
|
Loading…
Reference in a new issue