Returning only an e-mail addr on lookup function
This commit is contained in:
parent
40fa073ed4
commit
0099617bf8
1 changed files with 2 additions and 2 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue