mirror of
https://github.com/revoltchat/revite.git
synced 2024-12-25 23:22:06 -05:00
Merge pull request #155 from Snazzah/pr/mail-provider
Update Mail Providers
This commit is contained in:
commit
8d7a05f667
1 changed files with 15 additions and 0 deletions
|
@ -16,10 +16,12 @@ function mapMailProvider(email?: string): [string, string] | undefined {
|
||||||
const domain = match[1];
|
const domain = match[1];
|
||||||
switch (domain) {
|
switch (domain) {
|
||||||
case "gmail.com":
|
case "gmail.com":
|
||||||
|
case "googlemail.com":
|
||||||
return ["Gmail", "https://gmail.com"];
|
return ["Gmail", "https://gmail.com"];
|
||||||
case "tuta.io":
|
case "tuta.io":
|
||||||
return ["Tutanota", "https://mail.tutanota.com"];
|
return ["Tutanota", "https://mail.tutanota.com"];
|
||||||
case "outlook.com":
|
case "outlook.com":
|
||||||
|
case "hotmail.com":
|
||||||
return ["Outlook", "https://outlook.live.com"];
|
return ["Outlook", "https://outlook.live.com"];
|
||||||
case "yahoo.com":
|
case "yahoo.com":
|
||||||
return ["Yahoo", "https://mail.yahoo.com"];
|
return ["Yahoo", "https://mail.yahoo.com"];
|
||||||
|
@ -27,11 +29,24 @@ function mapMailProvider(email?: string): [string, string] | undefined {
|
||||||
return ["WP Poczta", "https://poczta.wp.pl"];
|
return ["WP Poczta", "https://poczta.wp.pl"];
|
||||||
case "protonmail.com":
|
case "protonmail.com":
|
||||||
case "protonmail.ch":
|
case "protonmail.ch":
|
||||||
|
case "pm.me":
|
||||||
return ["ProtonMail", "https://mail.protonmail.com"];
|
return ["ProtonMail", "https://mail.protonmail.com"];
|
||||||
case "seznam.cz":
|
case "seznam.cz":
|
||||||
case "email.cz":
|
case "email.cz":
|
||||||
case "post.cz":
|
case "post.cz":
|
||||||
return ["Seznam", "https://email.seznam.cz"];
|
return ["Seznam", "https://email.seznam.cz"];
|
||||||
|
case "zoho.com":
|
||||||
|
return ["Zoho Mail", "https://mail.zoho.com/zm/"];
|
||||||
|
case "aol.com":
|
||||||
|
case "aim.com":
|
||||||
|
return ["AOL Mail", "https://mail.aol.com/"];
|
||||||
|
case "icloud.com":
|
||||||
|
return ["iCloud Mail", "https://mail.aol.com/"];
|
||||||
|
case "mail.com":
|
||||||
|
case "email.com":
|
||||||
|
return ["mail.com", "https://www.mail.com/mail/"];
|
||||||
|
case "yandex.com":
|
||||||
|
return ["Yandex Mail", "https://mail.yandex.com/"];
|
||||||
default:
|
default:
|
||||||
return [domain, `https://${domain}`];
|
return [domain, `https://${domain}`];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue