From 35fbf350aebafb914e9608953316ee73acd8452f Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Fri, 9 Nov 2012 15:25:54 -0500 Subject: [PATCH] Fix sending to cross-realm Zephyr users. (imported from commit 1eebf286e149aa1242d6d26096003eb696fb18f2) --- bots/zephyr_mirror.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bots/zephyr_mirror.py b/bots/zephyr_mirror.py index 14753da..d7ee6c3 100755 --- a/bots/zephyr_mirror.py +++ b/bots/zephyr_mirror.py @@ -25,7 +25,7 @@ def to_zephyr_username(humbug_username): (user, realm) = humbug_username.split("@") if "|" not in user: return user.lower() + "@ATHENA.MIT.EDU" - match_user = re.match(r'([a-zA-Z0-9_]+)\|(.+)@mit\.edu', user) + match_user = re.match(r'([a-zA-Z0-9_]+)\|(.+)', user) if not match_user: raise Exception("Could not parse Zephyr realm for cross-realm user %s" % (humbug_username,)) return match_user.group(1).lower() + "@" + match_user.group(2).upper()