Skip to content

Commit c60dc69

Browse files
authored
chore: enrich email providers list (#3562)
1 parent 109417f commit c60dc69

5 files changed

Lines changed: 190 additions & 121 deletions

File tree

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
/**
2+
* A set of known bot handles that are not easily caught by the generic regex patterns.
3+
* This list handles exceptions with unique names or non-standard formats.
4+
*/
5+
export const knownBots = new Set([
6+
// GitHub bots
7+
'allcontributors',
8+
'better-code-hub',
9+
'bors',
10+
'bors-servo',
11+
'brewtestbot',
12+
'codeclimate',
13+
'codepilot',
14+
'coderabbit',
15+
'copilot',
16+
'dependabot',
17+
'easycla',
18+
'fabbot',
19+
'facebook-github-bot',
20+
'github-merge-queue',
21+
'goreleaserbot',
22+
'harness-ci',
23+
'hashibot',
24+
'homebrewbumpbot',
25+
'homu',
26+
'jenkins',
27+
'mergify',
28+
'msftbot',
29+
'opentelemetrybot',
30+
'pep8speaks',
31+
'prombot',
32+
'pullrequest',
33+
'renovate',
34+
'reviewdog',
35+
'rust-highfive',
36+
'rustbot',
37+
'scala-steward',
38+
'scrutinizer-auto-fixer',
39+
'sonatype-lift',
40+
'sphinx-bot',
41+
'teamcity',
42+
'tensorflower',
43+
'web-flow',
44+
'weblate',
45+
'zuul',
46+
47+
// Service automation bots
48+
'codecov',
49+
'deepsource',
50+
'gitguardian',
51+
'snyk',
52+
'whitesource',
53+
54+
// Discord Bots
55+
'arcane',
56+
'craig',
57+
'dankmemer',
58+
'dyno',
59+
'fredboat',
60+
'groovy',
61+
'helper.gg',
62+
'idlerpg',
63+
'maki',
64+
'mee6',
65+
'mudae',
66+
'notsobot',
67+
'rythm',
68+
'serverstats',
69+
'tatsu',
70+
'tickettool',
71+
'unbelievaboat',
72+
'yagpdb.xyz',
73+
74+
// Reddit Bots
75+
'apollo',
76+
'automoderator',
77+
'common-misspelling-bot',
78+
'remindmebot',
79+
'totesmessenger',
80+
'vredditdownloader',
81+
])
Lines changed: 103 additions & 117 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,75 @@
1-
export const blacklistedDomains = new Set([
1+
export const emailProviders = new Set([
22
'gmail.com',
3+
'gmail.co.uk',
4+
'gmail.com.au',
5+
'gmail.com.tr',
36
'yahoo.com',
7+
'yahoo.co.uk',
8+
'yahoo.com.br',
9+
'yahoo.co.in',
10+
'yahoo.fr',
11+
'yahoo.es',
12+
'yahoo.it',
13+
'yahoo.de',
14+
'yahoo.ca',
15+
'yahoo.com.au',
16+
'yahoo.in',
17+
'yahoo.co.jp',
18+
'yahoo.com.ar',
19+
'yahoo.com.mx',
20+
'yahoo.co.id',
21+
'yahoo.com.sg',
22+
'yahoo.co.za',
23+
'yahoo.com.ph',
24+
'yahoo.com.tw',
25+
'yahoo.com.hk',
26+
'yahoo.com.vn',
427
'hotmail.com',
28+
'hotmail.co.uk',
29+
'hotmail.fr',
30+
'hotmail.ca',
31+
'hotmail.it',
32+
'hotmail.es',
33+
'hotmail.de',
34+
'hotmail.com.au',
35+
'hotmail.com.mx',
536
'icloud.com',
37+
'icloud.com.cn',
638
'fastmail.com',
739
'tutanota.com',
40+
'tuta.io',
841
'gmx.com',
42+
'gmx.de',
43+
'gmx.net',
44+
'gmx.at',
45+
'gmx.ch',
46+
'gmx.fr',
47+
'gmx.co.uk',
948
'aol.com',
10-
'hotmail.co.uk',
11-
'hotmail.fr',
12-
'hotmail.ca',
49+
'aol.co.uk',
50+
'aol.fr',
51+
'aol.de',
1352
'msn.com',
14-
'yahoo.fr',
1553
'wanadoo.fr',
1654
'orange.fr',
1755
'comcast.net',
18-
'yahoo.co.uk',
19-
'yahoo.com.br',
20-
'yahoo.co.in',
2156
'live.com',
57+
'live.co.uk',
58+
'live.fr',
59+
'live.nl',
60+
'live.it',
61+
'live.com.au',
62+
'live.ca',
63+
'live.cn',
2264
'rediffmail.com',
65+
'sify.com',
66+
'indiatimes.com',
2367
'free.fr',
24-
'gmx.de',
2568
'web.de',
2669
'yandex.ru',
70+
'yandex.com',
71+
'yandex.com.tr',
72+
'ya.ru',
2773
'ymail.com',
2874
'libero.it',
2975
'outlook.com',
@@ -33,41 +79,42 @@ export const blacklistedDomains = new Set([
3379
'outlook.es',
3480
'outlook.it',
3581
'outlook.com.au',
82+
'outlook.com.br',
83+
'outlook.com.mx',
84+
'outlook.co.jp',
85+
'outlook.in',
86+
'outlook.com.sg',
87+
'outlook.co.za',
88+
'outlook.co.in',
3689
'uol.com.br',
3790
'bol.com.br',
3891
'mail.ru',
92+
'inbox.ru',
93+
'list.ru',
94+
'bk.ru',
95+
'mail.com',
96+
'mail.de',
97+
'mail.co.uk',
3998
'cox.net',
40-
'hotmail.it',
4199
'sbcglobal.net',
42100
'sfr.fr',
43-
'live.fr',
44101
'verizon.net',
45-
'live.co.uk',
46102
'googlemail.com',
47-
'yahoo.es',
48103
'ig.com.br',
49-
'live.nl',
50104
'bigpond.com',
105+
'bigpond.net.au',
51106
'terra.com.br',
52-
'yahoo.it',
53107
'neuf.fr',
54-
'yahoo.de',
55108
'alice.it',
56109
'rocketmail.com',
57110
'att.net',
58111
'laposte.net',
59-
'facebook.com',
60112
'bellsouth.net',
61-
'yahoo.in',
62-
'hotmail.es',
63113
'charter.net',
64-
'yahoo.ca',
65-
'yahoo.com.au',
66114
'rambler.ru',
67-
'hotmail.de',
68115
'tiscali.it',
116+
'tiscali.co.uk',
69117
'shaw.ca',
70-
'yahoo.co.jp',
71118
'sky.com',
72119
'earthlink.net',
73120
'optonline.net',
@@ -77,24 +124,17 @@ export const blacklistedDomains = new Set([
77124
'virgilio.it',
78125
'home.nl',
79126
'qq.com',
127+
'vip.qq.com',
80128
'telenet.be',
129+
'pandora.be',
81130
'me.com',
82-
'yahoo.com.ar',
83-
'tiscali.co.uk',
84-
'yahoo.com.mx',
85131
'voila.fr',
86-
'gmx.net',
87-
'mail.com',
88132
'planet.nl',
89133
'tin.it',
90-
'live.it',
91134
'ntlworld.com',
92135
'arcor.de',
93-
'yahoo.co.id',
94136
'frontiernet.net',
95137
'hetnet.nl',
96-
'live.com.au',
97-
'yahoo.com.sg',
98138
'zonnet.nl',
99139
'club-internet.fr',
100140
'juno.com',
@@ -107,100 +147,46 @@ export const blacklistedDomains = new Set([
107147
'mac.com',
108148
'centurytel.net',
109149
'chello.nl',
110-
'live.ca',
111150
'aim.com',
112-
'bigpond.net.au',
113151
'protonmail.com',
152+
'protonmail.ch',
114153
'proton.me',
115154
'pm.me',
116155
'duck.com',
117156
'zoho.com',
157+
'zohomail.com',
118158
'users.noreply.github.com',
119159
'126.com',
160+
'139.com',
120161
'163.com',
162+
'188.com',
121163
'foxmail.com',
122-
'groups.io',
164+
'tom.com',
165+
'21cn.com',
123166
'yeah.net',
124-
])
125-
126-
/**
127-
* A set of known bot handles that are not easily caught by the generic regex patterns.
128-
* This list handles exceptions with unique names or non-standard formats.
129-
*/
130-
export const knownBots = new Set([
131-
// GitHub bots
132-
'allcontributors',
133-
'better-code-hub',
134-
'bors',
135-
'bors-servo',
136-
'brewtestbot',
137-
'codeclimate',
138-
'codepilot',
139-
'coderabbit',
140-
'copilot',
141-
'dependabot',
142-
'easycla',
143-
'fabbot',
144-
'facebook-github-bot',
145-
'github-merge-queue',
146-
'goreleaserbot',
147-
'harness-ci',
148-
'hashibot',
149-
'homebrewbumpbot',
150-
'homu',
151-
'jenkins',
152-
'mergify',
153-
'msftbot',
154-
'opentelemetrybot',
155-
'pep8speaks',
156-
'prombot',
157-
'pullrequest',
158-
'renovate',
159-
'reviewdog',
160-
'rust-highfive',
161-
'rustbot',
162-
'scala-steward',
163-
'scrutinizer-auto-fixer',
164-
'sonatype-lift',
165-
'sphinx-bot',
166-
'teamcity',
167-
'tensorflower',
168-
'web-flow',
169-
'weblate',
170-
'zuul',
171-
172-
// Service automation bots
173-
'codecov',
174-
'deepsource',
175-
'gitguardian',
176-
'snyk',
177-
'whitesource',
178-
179-
// Discord Bots
180-
'arcane',
181-
'craig',
182-
'dankmemer',
183-
'dyno',
184-
'fredboat',
185-
'groovy',
186-
'helper.gg',
187-
'idlerpg',
188-
'maki',
189-
'mee6',
190-
'mudae',
191-
'notsobot',
192-
'rythm',
193-
'serverstats',
194-
'tatsu',
195-
'tickettool',
196-
'unbelievaboat',
197-
'yagpdb.xyz',
198-
199-
// Reddit Bots
200-
'apollo',
201-
'automoderator',
202-
'common-misspelling-bot',
203-
'remindmebot',
204-
'totesmessenger',
205-
'vredditdownloader',
167+
'naver.com',
168+
'daum.net',
169+
'hanmail.net',
170+
'hey.com',
171+
'inbox.com',
172+
'lycos.com',
173+
'excite.com',
174+
'hushmail.com',
175+
'mailfence.com',
176+
'mailbox.org',
177+
'posteo.de',
178+
'startmail.com',
179+
'runbox.com',
180+
'countermail.com',
181+
'mynet.com',
182+
'wp.pl',
183+
'onet.pl',
184+
'interia.pl',
185+
'o2.pl',
186+
'seznam.cz',
187+
'centrum.cz',
188+
'mailinator.com',
189+
'guerrillamail.com',
190+
'10minutemail.com',
191+
'tempmail.com',
206192
])
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export * from './email-providers'
2+
export * from './bots'

0 commit comments

Comments
 (0)