Skip to content

Commit 329a415

Browse files
authored
Merge pull request #1932 from maxmind/expand-email-alias-domains
Expand email alias domain lists
2 parents f414954 + a4a1904 commit 329a415

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

src/request/email.spec.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,11 @@ describe('Email()', () => {
224224
md5: md5('user@fastmail.com'),
225225
domain: 'user.fastmail.com',
226226
},
227+
{
228+
email: 'alias@user.fastmail.ca',
229+
md5: md5('user@fastmail.ca'),
230+
domain: 'user.fastmail.ca',
231+
},
227232
{
228233
email: 'foo@bar.example.com',
229234
md5: md5('foo@bar.example.com'),
@@ -234,6 +239,11 @@ describe('Email()', () => {
234239
md5: md5('foo@ymail.com'),
235240
domain: 'ymail.com',
236241
},
242+
{
243+
email: 'test-alias@myyahoo.com',
244+
md5: md5('test@myyahoo.com'),
245+
domain: 'myyahoo.com',
246+
},
237247
{
238248
email: 'foo@example.com.com',
239249
md5: md5('foo@example.com'),

src/request/email.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ export default class Email implements EmailProps {
168168
'fastemailer.com': true,
169169
'fastest.cc': true,
170170
'fastimap.com': true,
171+
'fastmail.ca': true,
171172
'fastmail.cn': true,
172173
'fastmail.co.uk': true,
173174
'fastmail.com': true,
@@ -261,6 +262,7 @@ export default class Email implements EmailProps {
261262
};
262263

263264
private static readonly yahooDomains: { [key: string]: boolean } = {
265+
'myyahoo.com': true,
264266
'y7mail.com': true,
265267
'yahoo.at': true,
266268
'yahoo.be': true,

0 commit comments

Comments
 (0)