From 5cb3e0ee48f2b1eeea21cfcfad107b41e2e9e0bc Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Mon, 19 Sep 2016 23:36:45 -0400 Subject: [PATCH] Returning just the name on the email lookup function --- master.cfg | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/master.cfg b/master.cfg index ea0853e..469963c 100644 --- a/master.cfg +++ b/master.cfg @@ -572,18 +572,7 @@ class LookupEmailTryBuild (object): implements (IEmailLookup) def getAddress (self, name): - # 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) - for directory, sort_order in tryjobdir: - for _, _, filenames in os.walk (directory): - for f in sorted (filenames, reverse = sort_order): - with open (os.path.join (directory, f), 'r') as myf: - for line in reversed (myf.readlines ()): - m = re.match (name_re, line) - if m: - return m.group (2) + return name mn_try = MyMailNotifier(fromaddr = GDB_MAIL_FROM, sendToInterestedUsers = True,