Skip to content

Commit 1668e7a

Browse files
committed
maintainer: ignore the +xyz in emails when matching
Mailbot is rejecting maintainers who have +str in their email. Try to cut that part out. Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 6db3fbc commit 1668e7a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

core/maintainers.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ def name_email_split(name_email):
2525
name_email = name_email[idx + 1:-1]
2626
name = ''
2727
email = name_email
28+
if '+' in email and email.find('+') < email.find('@'):
29+
pidx = email.find('+')
30+
didx = email.find('@')
31+
email = email[:idx] + email[didx:]
32+
2833
return name, email
2934

3035
def __repr__(self):

0 commit comments

Comments
 (0)