Bug 303824: BugMail should ignore deleted or renamed user accounts - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=justdave
git-svn-id: svn://10.0.0.236/trunk@177700 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user