summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/BugMail.pm4
-rw-r--r--extensions/BMO/Extension.pm5
2 files changed, 8 insertions, 1 deletions
diff --git a/Bugzilla/BugMail.pm b/Bugzilla/BugMail.pm
index 696db5ceb..ea79947b8 100644
--- a/Bugzilla/BugMail.pm
+++ b/Bugzilla/BugMail.pm
@@ -294,7 +294,9 @@ sub Send {
# happen after the bugmail_recipients hook.
if ($user->email_enabled && $dep_ok &&
($user->login !~ /bugs$/) &&
- ($user->login !~ /\.tld$/))
+ # sync-1@bugzilla.tld here is a temporary hack, see bug 844724
+ ($user->login eq 'sync-1@bugzilla.tld' || $user->login !~ /\.tld$/))
+
{
# OK, OK, if we must. Email the user.
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index a887582c3..7909d732d 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -847,6 +847,11 @@ sub mailer_before_send {
_log_sent_email($email);
+ # see bug 844724
+ if ($email->header('to') && $email->header('to') eq 'sync-1@bugzilla.tld') {
+ $email->header_set('to', 'mei.kong@tcl.com');
+ }
+
# Add X-Bugzilla-Tracking header
if ($email->header('X-Bugzilla-ID')) {
my $bug_id = $email->header('X-Bugzilla-ID');