summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorByron Jones <glob@mozilla.com>2014-11-04 07:53:12 +0100
committerByron Jones <glob@mozilla.com>2014-11-04 07:53:12 +0100
commit7fdcd8ef2760a536190c44e1318e4342d27ec619 (patch)
treec340a019a23d6072aa47b2eceff5c503c7d6a86f
parent32e6ac30461863f4fc89a050455794436affa2a3 (diff)
downloadbugzilla-7fdcd8ef2760a536190c44e1318e4342d27ec619.tar.gz
bugzilla-7fdcd8ef2760a536190c44e1318e4342d27ec619.tar.xz
Bug 1092037: backport bug 1062739 to bmo (add the ability for administrators to limit the number of emails sent to a user per minute and hour)
-rw-r--r--Bugzilla/Job/Mailer.pm2
-rwxr-xr-xview_job_queue.cgi1
2 files changed, 2 insertions, 1 deletions
diff --git a/Bugzilla/Job/Mailer.pm b/Bugzilla/Job/Mailer.pm
index e3b94894a..56b6d4f69 100644
--- a/Bugzilla/Job/Mailer.pm
+++ b/Bugzilla/Job/Mailer.pm
@@ -63,7 +63,7 @@ sub work {
sub process_job {
my ($class, $arg) = @_;
- MessageToMTA($arg, 1);
+ MessageToMTA($arg->{msg}, 1);
}
1;
diff --git a/view_job_queue.cgi b/view_job_queue.cgi
index 7accc512d..5ebe1e7a5 100755
--- a/view_job_queue.cgi
+++ b/view_job_queue.cgi
@@ -45,6 +45,7 @@ sub generate_report {
j.run_after AS run_time,
j.grabbed_until,
f.funcname AS func,
+ (SELECT COUNT(*) FROM ts_error WHERE e.jobid = j.jobid) AS error_count,
e.jobid AS error_count,
e.error_time AS error_time,
e.message AS error_message