From 2a9ccf5ccd4fae73510c590993547a3d9634de07 Mon Sep 17 00:00:00 2001 From: "jake%bugzilla.org" Date: Sun, 29 Dec 2002 07:06:41 +0000 Subject: [PATCH] Bug 183388 - processmail wasn't picking up on users being added to the owner or qa contact role and was dropping emails if the user had selected to only get mail on those events. Patch by Mark Drew r=jake a=justdave git-svn-id: svn://10.0.0.236/trunk@135681 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/webtools/bugzilla/processmail | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mozilla/webtools/bugzilla/processmail b/mozilla/webtools/bugzilla/processmail index a4b05ff0c5a..aa3628abdff 100755 --- a/mozilla/webtools/bugzilla/processmail +++ b/mozilla/webtools/bugzilla/processmail @@ -327,7 +327,7 @@ sub ProcessOneBug { push(@reasons, 'AssignedTo') if lsearch(\@assigned_toList, $person) != -1; push(@reasons, 'Reporter') if lsearch(\@reporterList, $person) != -1; - push(@reasons, 'QAContact') if lsearch(\@qa_contactList, $person) != -1; + push(@reasons, 'QAcontact') if lsearch(\@qa_contactList, $person) != -1; push(@reasons, 'CC') if lsearch(\@ccList, $person) != -1; push(@reasons, 'Voter') if lsearch(\@voterList, $person) != -1; @@ -478,10 +478,10 @@ sub getEmailAttributes (\%\@$) { # to the Owner, QA, CC, etc. fields. It does not effect # the @flags array at all, but is run here because it does # effect filtering later and we're already in the loop. - if ($fieldName eq 'Owner') { + if ($fieldName eq 'AssignedTo') { push (@{$force{'Owner'}}, $new); } elsif ($fieldName eq 'QAContact') { - push (@{$force{'QAContact'}}, $new); + push (@{$force{'QAcontact'}}, $new); } elsif ($fieldName eq 'CC') { my @added = split (/[ ,]/, $new); push (@{$force{'CClist'}}, @added); @@ -766,7 +766,7 @@ sub NewProcessOnePerson ($$$$$$$$$$$$$) { $reasonsbody .= "You are the assignee for the bug, or are watching the assignee.\n"; } elsif ($reason eq 'Reporter') { $reasonsbody .= "You reported the bug, or are watching the reporter.\n"; - } elsif ($reason eq 'QAContact') { + } elsif ($reason eq 'QAcontact') { $reasonsbody .= "You are the QA contact for the bug, or are watching the QA contact.\n"; } elsif ($reason eq 'CC') { $reasonsbody .= "You are on the CC list for the bug, or are watching someone who is.\n";