diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-09-13 15:03:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-13 15:03:50 +0200 |
commit | 5c003fcc3ee164e92295f8518ca90eec0196a30c (patch) | |
tree | d92254cd59e3f97f4b3fcf42e09715c0ccd286b4 /Bugzilla/BugMail.pm | |
parent | 90757225b25c4eab4b4f4b9296c63746c710721d (diff) | |
download | bugzilla-5c003fcc3ee164e92295f8518ca90eec0196a30c.tar.gz bugzilla-5c003fcc3ee164e92295f8518ca90eec0196a30c.tar.xz |
Bug 1398889 - Add param 'silent_users' that never trigger sending bugmail
* Add param silent_users
* Add method is_silent_user to User class, which returns true if the login name matches an entry in silent_users.
* Change user_wants_mail() to return false if the changer is a silent user.
* Change is_global_watcher() in User class code to use any instead of grep
* Change regex used to parse param 'globalwatchers' to use consistent regex in BugMail.pm and User.pm
Diffstat (limited to 'Bugzilla/BugMail.pm')
-rw-r--r-- | Bugzilla/BugMail.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm index e40e9c97a..defe7c84f 100644 --- a/Bugzilla/BugMail.pm +++ b/Bugzilla/BugMail.pm @@ -214,7 +214,7 @@ sub Send { } # Global watcher - my @watchers = split(/[,\s]+/, Bugzilla->params->{'globalwatchers'}); + my @watchers = split(/\s*,\s*/ms, Bugzilla->params->{'globalwatchers'}); foreach (@watchers) { my $watcher_id = login_to_id($_); next unless $watcher_id; |