Reduce the number of "funky email" gripes

Addresses of the form "user at host.wherever" can be trivially repaired, so
let's do so.

A couple of other minor tweaks are included here as well; nothing which
changes behavior.
This commit is contained in:
Jonathan Corbet
2009-07-24 13:56:21 -06:00
parent c0d9831515
commit d25572552b
3 changed files with 5 additions and 4 deletions

View File

@@ -192,7 +192,8 @@ def AddEmailEmployerMapping (email, employer, end = nextyear):
EmailToEmployer[email] = [(end, empl)]
def MapToEmployer (email, unknown = 0):
email = email.lower ()
# Somebody sometimes does s/@/ at /; let's fix it.
email = email.lower ().replace (' at ', '@')
try:
return EmailToEmployer[email]
except KeyError:

4
gitdm
View File

@@ -4,8 +4,8 @@
#
# This code is part of the LWN git data miner.
#
# Copyright 2007-8 LWN.net
# Copyright 2007-8 Jonathan Corbet <corbet@lwn.net>
# Copyright 2007-9 LWN.net
# Copyright 2007-9 Jonathan Corbet <corbet@lwn.net>
#
# This file may be distributed under the terms of the GNU General
# Public License, version 2.

View File

@@ -21,7 +21,7 @@ Pcommit = re.compile (r'^commit ([0-9a-f ]+)$')
Pauthor = re.compile (r'^Author:' + Pemail + '$')
Psob = re.compile (r'Signed-off-by:' + Pemail)
Pmerge = re.compile (r'^Merge:.*$')
Padd = re.compile (r'^\+[^\+].*$')
Padd = re.compile (r'^\+[^+].*$')
Prem = re.compile (r'^-[^-].*$')
Pdate = re.compile (r'^(Commit)?Date:\s+(.*)$')
Pfilea = re.compile (r'^---\s+(.*)$')