From 0099617bf80d09edfdb8302c34090b00a5ff555c Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 19 Sep 2016 16:58:55 -0400 Subject: [PATCH] Returning only an e-mail addr on lookup function --- master.cfg | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/master.cfg b/master.cfg index 588c98e..ea0853e 100644 --- a/master.cfg +++ b/master.cfg @@ -575,7 +575,7 @@ class LookupEmailTryBuild (object): # List of [ dir, sorted_reverse ] tryjobdir = [ [ os.path.expanduser ("~/gdb/try_ssh_jobdir/new/"), False ], [ os.path.expanduser ("~/gdb/try_ssh_jobdir/cur/"), True ] ] - name_re = re.compile (".*(%s <.*@.*>),.*" % name, flags = re.UNICODE) + name_re = re.compile (".*(%s <(.*@.*)>),.*" % name, flags = re.UNICODE) for directory, sort_order in tryjobdir: for _, _, filenames in os.walk (directory): for f in sorted (filenames, reverse = sort_order): @@ -583,7 +583,7 @@ class LookupEmailTryBuild (object): for line in reversed (myf.readlines ()): m = re.match (name_re, line) if m: - return m.group (1) + return m.group (2) mn_try = MyMailNotifier(fromaddr = GDB_MAIL_FROM, sendToInterestedUsers = True,