summaryrefslogtreecommitdiff
path: root/database.py
diff options
context:
space:
mode:
authorJonathan Corbet <corbet@lwn.net>2009-07-24 13:56:21 -0600
committerJonathan Corbet <corbet@lwn.net>2009-07-24 13:56:21 -0600
commitd25572552b2ac5cf906555674ad9ed95c3acb41e (patch)
treebe01c2ab64978257a380a183ddb4e48fd8697d6b /database.py
parentc0d9831515530f29875a56df997657f62a505577 (diff)
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.
Diffstat (limited to 'database.py')
-rw-r--r--database.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/database.py b/database.py
index dbada8a..f15cc7a 100644
--- a/database.py
+++ b/database.py
@@ -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: