From 8a3d4469cc85108a194a78ac95f2a6780d2971eb Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Wed, 24 Dec 2008 03:43:36 +0000 Subject: Bug 284184: Allow Bugzilla to use an asynchronous job queue for sending mail. Patch By Max Kanat-Alexander and Mark Smith r=glob, a=mkanat --- template/en/default/admin/params/mta.html.tmpl | 10 ++++++++++ template/en/default/global/code-error.html.tmpl | 15 +++++++++++++++ template/en/default/global/messages.html.tmpl | 3 +++ 3 files changed, 28 insertions(+) (limited to 'template') diff --git a/template/en/default/admin/params/mta.html.tmpl b/template/en/default/admin/params/mta.html.tmpl index 800fbad9b..8533257f4 100644 --- a/template/en/default/admin/params/mta.html.tmpl +++ b/template/en/default/admin/params/mta.html.tmpl @@ -45,6 +45,16 @@ mailfrom => "The email address of the $terms.Bugzilla mail daemon. Some email systems " _ "require this to be a valid email address.", + use_mailer_queue => "In a large $terms.Bugzilla installation, updating" + _ " $terms.bugs can be very slow, because $terms.Bugzilla sends all" + _ " email at once. If you enable this parameter, $terms.Bugzilla will" + _ " queue all mail and then send it in the background. This requires" + _ " that you have installed certain Perl modules (as listed by" + _ " checksetup.pl for this feature), and that you are" + _ " running the jobqueue.pl daemon (otherwise your mail" + _ " won't get sent). This affects all mail sent by $terms.Bugzilla," + _ " not just $terms.bug updates.", + sendmailnow => "Sites using anything older than version 8.12 of 'sendmail' " _ "can achieve a significant performance increase in the " _ "UI -- at the cost of delaying the sending of mail -- by " _ diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index f85375849..37e052f81 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -277,6 +277,21 @@ given. [% END %] + [% ELSIF error == "jobqueue_insert_failed" %] + [% title = "Job Queue Failure" %] + Inserting a [% job FILTER html %] job into the Job + Queue failed with the following error: [% errmsg FILTER html %] + + [% ELSIF error == "jobqueue_not_configured" %] + Using the job queue system requires that certain Perl modules + be installed. Run checksetup.pl to see what modules + you are missing. + + [% ELSIF error == "jobqueue_no_job_mapping" %] + Bugzilla::JobQueue has not been configured to handle + the job "[% job FILTER html %]". You need to add this job type + to the JOB_MAP constant in Bugzilla::JobQueue. + [% ELSIF error == "ldap_bind_failed" %] Failed to bind to the LDAP server. The error message was: [% errstr FILTER html %] diff --git a/template/en/default/global/messages.html.tmpl b/template/en/default/global/messages.html.tmpl index 1a9c7220a..1aa464c8f 100644 --- a/template/en/default/global/messages.html.tmpl +++ b/template/en/default/global/messages.html.tmpl @@ -451,6 +451,9 @@ group. [% END %] + [% ELSIF message_tag == "job_queue_depth" %] + [% count FILTER html %] jobs in the queue. + [% ELSIF message_tag == "keyword_created" %] [% title = "New Keyword Created" %] The keyword [% name FILTER html %] has been created. -- cgit v1.2.3-24-g4f1b