From 0551dc5d31c2472c737a40b3b1c9e87f73732cb3 Mon Sep 17 00:00:00 2001 From: Reed Loden Date: Wed, 7 Jul 2010 23:14:56 -0700 Subject: Bug 452761: Make the Date header of bugmail and requestmail always be equal to the delta_ts of the bug. This makes emails have the right Date even when they are sent much later by jobqueue.pl. r=mkanat, a=mkanat --- template/en/default/email/newchangedmail.txt.tmpl | 1 + template/en/default/request/email.txt.tmpl | 1 + 2 files changed, 2 insertions(+) (limited to 'template/en') diff --git a/template/en/default/email/newchangedmail.txt.tmpl b/template/en/default/email/newchangedmail.txt.tmpl index 4163306f4..e138eff23 100644 --- a/template/en/default/email/newchangedmail.txt.tmpl +++ b/template/en/default/email/newchangedmail.txt.tmpl @@ -24,6 +24,7 @@ From: [% Param('mailfrom') %] To: [% to_user.email %] Subject: [[% terms.Bug %] [%+ bug.id %]] [% 'New: ' IF isnew %][%+ bug.short_desc %] +Date: [% bug.delta_ts FILTER time("%a, %d %b %Y %T %z", to_user.timezone) %] X-Bugzilla-Reason: [% reasonsheader %] X-Bugzilla-Type: [% isnew ? 'new' : 'changed' %] X-Bugzilla-Watch-Reason: [% reasonswatchheader %] diff --git a/template/en/default/request/email.txt.tmpl b/template/en/default/request/email.txt.tmpl index e48b2fc13..bfb88f287 100644 --- a/template/en/default/request/email.txt.tmpl +++ b/template/en/default/request/email.txt.tmpl @@ -49,6 +49,7 @@ From: [% Param('mailfrom') %] To: [% to %] Subject: [% flagtype_name %] [%+ subject_status %]: [[% terms.Bug %] [%+ bug.bug_id %]] [% bug.short_desc %] +Date: [% bug.delta_ts FILTER time("%a, %d %b %Y %T %z", timezone) %] [%- IF attachment %] : [Attachment [% attachment.id %]] [% attachment.description %][% END %] X-Bugzilla-Type: request -- cgit v1.2.3-24-g4f1b