summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authorbyron jones <byron@glob.com.au>2018-02-27 23:45:15 +0100
committerDylan William Hardison <dylan@hardison.net>2018-02-27 23:45:15 +0100
commit2ac3574928f3bf8b68e881f49f854b61aa023d63 (patch)
tree2fb01fb9a8bf951d215a9b7e20fd609ced75ee31 /template
parent7e047746fc38dee9e9330d3da81e87585aac92e6 (diff)
downloadbugzilla-2ac3574928f3bf8b68e881f49f854b61aa023d63.tar.gz
bugzilla-2ac3574928f3bf8b68e881f49f854b61aa023d63.tar.xz
Bug 1438206 - Process SES email bounces properly
Diffstat (limited to 'template')
-rw-r--r--template/en/default/admin/users/bounce-disabled.txt.tmpl19
-rw-r--r--template/en/default/email/ses-complaint.txt.tmpl31
-rw-r--r--template/en/default/setup/strings.txt.pl6
3 files changed, 56 insertions, 0 deletions
diff --git a/template/en/default/admin/users/bounce-disabled.txt.tmpl b/template/en/default/admin/users/bounce-disabled.txt.tmpl
new file mode 100644
index 000000000..f4ae6a361
--- /dev/null
+++ b/template/en/default/admin/users/bounce-disabled.txt.tmpl
@@ -0,0 +1,19 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[%# INTERFACE:
+ # mta: mail server reporting error
+ # reason: Reason for bounce (diagnostic code)
+ #%]
+
+[% PROCESS global/variables.none.tmpl %]
+
+Your [% terms.Bugzilla %] account has been disabled due to issues delivering
+emails to your address.<br>
+<br>
+Your mail server ([% mta FILTER html %]) said: [% reason FILTER html %]<br>
diff --git a/template/en/default/email/ses-complaint.txt.tmpl b/template/en/default/email/ses-complaint.txt.tmpl
new file mode 100644
index 000000000..93ad5eff4
--- /dev/null
+++ b/template/en/default/email/ses-complaint.txt.tmpl
@@ -0,0 +1,31 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[%# INTERFACE:
+ # email: email address the complaint pertains to
+ # user: Bugzilla::User object associated with email (may be undef)
+ # reason: Reason for complaint
+ # notification: notification from SES (JSON)
+ #%]
+
+[% PROCESS global/variables.none.tmpl %]
+
+From: [% Param('mailfrom') %]
+To: [% Param('maintainer') %]
+Subject: [% terms.Bugzilla %]: SES Complaint: [% email %]: [% reason %]
+X-Bugzilla-Type: admin
+
+SES Complaint received for [% email %]: [% reason %]
+
+[% IF user %]
+[% urlbase %]/editusers.cgi?action=edit&userid=[% user.id %]
+[% ELSE %]
+Failed to find corresponding user in Bugzilla.
+[% END %]
+
+[%+ notification %]
diff --git a/template/en/default/setup/strings.txt.pl b/template/en/default/setup/strings.txt.pl
index 35a771ff3..ce4785b04 100644
--- a/template/en/default/setup/strings.txt.pl
+++ b/template/en/default/setup/strings.txt.pl
@@ -204,6 +204,12 @@ END
localconfig_memcached_namespace => <<'END',
Specify a string to prefix each key on Memcached.
END
+ localconfig_ses_username => <<'END',
+Username for HTTP Basic Authentication in front of the SES bounce handler.
+END
+ localconfig_ses_password => <<'END',
+Password for HTTP Basic Authentication in front of the SES bounce handler.
+END
localconfig_site_wide_secret => <<'END',
This secret key is used by your installation for the creation and
validation of encrypted tokens. These tokens are used to implement