From 1114362f8474870d8a82eb7b5056bf5177739a63 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" Date: Sat, 13 Aug 2005 14:07:43 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20303824:=20BugMail=20should=20ignore=20del?= =?UTF-8?q?eted=20or=20renamed=20user=20accounts=20-=20Patch=20by=20Fr?= =?UTF-8?q?=C3=A9d=C3=A9ric=20Buclin=20=20r=3Dwurblzap?= =?UTF-8?q?=20a=3Djustdave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@177700 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/Bugzilla/BugMail.pm | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm b/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm index 35026b48e9c..e51f0c83bcd 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm +++ b/mozilla/webtools/bugzilla/Bugzilla/BugMail.pm @@ -358,17 +358,20 @@ sub ProcessOneBug { if ($old) { # You can't stop being the reporter, and mail isn't sent if you # remove your vote. + # Ignore people whose user account has been deleted or renamed. if ($what eq "CC") { foreach my $cc_user (split(/[\s,]+/, $old)) { - push(@{$recipients{&::DBNameToIdAndCheck($cc_user)}}, - REL_CC); + my $uid = login_to_id($cc_user); + push(@{$recipients{$uid}}, REL_CC) if $uid; } } elsif ($what eq "QAContact") { - push(@{$recipients{&::DBNameToIdAndCheck($old)}}, REL_QA); + my $uid = login_to_id($old); + push(@{$recipients{$uid}}, REL_QA) if $uid; } elsif ($what eq "AssignedTo") { - push(@{$recipients{&::DBNameToIdAndCheck($old)}}, REL_ASSIGNEE); + my $uid = login_to_id($old); + push(@{$recipients{$uid}}, REL_ASSIGNEE) if $uid; } } }