Matmarex has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/56879


Change subject: (bug 43130) Pretend global watchers are CCs so we can use their 
prefs
......................................................................

(bug 43130) Pretend global watchers are CCs so we can use their prefs

This is a reaplying of the hack for Bugzilla 4.2.

Previously applied to 4.0 in 99319f78d16bc15ef5bfa63135a95df5a102739d.

Change-Id: I0344d24308d3b769410b78b1ab40badf6c0d5cc5
---
M bugzilla-4.2/Bugzilla/BugMail.pm
1 file changed, 4 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikimedia/bugzilla/modifications 
refs/changes/79/56879/1

diff --git a/bugzilla-4.2/Bugzilla/BugMail.pm b/bugzilla-4.2/Bugzilla/BugMail.pm
index 55eeeab..66330d0 100644
--- a/bugzilla-4.2/Bugzilla/BugMail.pm
+++ b/bugzilla-4.2/Bugzilla/BugMail.pm
@@ -215,7 +215,10 @@
     foreach (@watchers) {
         my $watcher_id = login_to_id($_);
         next unless $watcher_id;
-        $recipients{$watcher_id}->{+REL_GLOBAL_WATCHER} = BIT_DIRECT;
+        #$recipients{$watcher_id}->{+REL_GLOBAL_WATCHER} = BIT_DIRECT;
+        # Wikimedia Hack! Pretend global watchers are CCs so we can use their 
prefs
+        # to for instance ignore CC-only mails.
+        $recipients{$watcher_id}->{+REL_CC} = BIT_DIRECT;
     }
 
     # We now have a complete set of all the users, and their relationships to

-- 
To view, visit https://gerrit.wikimedia.org/r/56879
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0344d24308d3b769410b78b1ab40badf6c0d5cc5
Gerrit-PatchSet: 1
Gerrit-Project: wikimedia/bugzilla/modifications
Gerrit-Branch: master
Gerrit-Owner: Matmarex <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to