From: terry%mozilla.org <> Date: Sun, 26 Sep 1999 03:35:52 +0000 (+0000) Subject: Don't send email notification of bug changes to people who aren't allowed to see... X-Git-Tag: bugzilla-2.8~51 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ce4a388ef2109b31c933f8d66c61a668db0ecfa;p=thirdparty%2Fbugzilla.git Don't send email notification of bug changes to people who aren't allowed to see that bug. --- diff --git a/processmail b/processmail index 4c780d1536..04c064df34 100755 --- a/processmail +++ b/processmail @@ -150,7 +150,7 @@ sub GetBugText { "bug_status", "resolution", "priority", "bug_severity", "area", "assigned_to", "reporter", "bug_file_loc", "short_desc", "component", "qa_contact", "target_milestone", - "status_whiteboard"); + "status_whiteboard", "groupset"); my $query = "select " . join(", ", @collist) . " from bugs where bug_id = $id"; @@ -224,9 +224,12 @@ sub fixaddresses { if ($i eq "") { next; } - SendSQL("select emailnotification from profiles where login_name = " . + SendSQL("select emailnotification, groupset & $::bug{'groupset'} from profiles where login_name = " . SqlQuote($i)); - my $emailnotification = FetchOneColumn(); + my ($emailnotification, $groupset) = (FetchSQLData()); + if ($groupset ne $::bug{'groupset'}) { + next; + } if ($emailnotification eq "CConly") { if ($field ne "cc") { next;