From 6982af2deb77df81743503147bd430895ba55219 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Mon, 25 Feb 2013 17:33:17 +0800 Subject: Bug 844724: updates for the push extension --- Bugzilla/BugMail.pm | 4 +++- extensions/BMO/Extension.pm | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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'); -- cgit v1.2.3-24-g4f1b