summaryrefslogtreecommitdiffstats
path: root/processmail
diff options
context:
space:
mode:
authorterry%mozilla.org <>1999-09-26 05:35:52 +0200
committerterry%mozilla.org <>1999-09-26 05:35:52 +0200
commit3ce4a388ef2109b31c933f8d66c61a668db0ecfa (patch)
tree93a0e10f3ee7c65b5e0fbed330b86a44f12ce483 /processmail
parentee401d62e7465c4b7a0a6ab355391d0feabccf74 (diff)
downloadbugzilla-3ce4a388ef2109b31c933f8d66c61a668db0ecfa.tar.gz
bugzilla-3ce4a388ef2109b31c933f8d66c61a668db0ecfa.tar.xz
Don't send email notification of bug changes to people who aren't allowed to see that bug.
Diffstat (limited to 'processmail')
-rwxr-xr-xprocessmail9
1 files changed, 6 insertions, 3 deletions
diff --git a/processmail b/processmail
index 4c780d153..04c064df3 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;