Closed
Bug 452761
Opened 17 years ago
Closed 15 years ago
TheSchwartz queuing appears to timestamp bugmail when it gets sent instead of when the bug change happened
Categories
(Bugzilla :: Email Notifications, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.0
People
(Reporter: justdave, Assigned: reed)
References
Details
Attachments
(1 file, 2 obsolete files)
2.92 KB,
patch
|
mkanat
:
review+
|
Details | Diff | Splinter Review |
Discovered this after our upgrade last night when we had bugmail for several bugs that was created during our testing phase before the site went live released from the queue a little late... they all got timestamped when the mail was actually sent. It probably would have made better sense to timestamp them when the bug change happened.
Assignee | ||
Updated•15 years ago
|
Assignee: nobody → email-notifications
Component: Bugzilla: Other b.m.o Issues → Email Notifications
Product: mozilla.org → Bugzilla
QA Contact: other-bmo-issues → default-qa
Version: other → 3.4
Assignee | ||
Comment 1•15 years ago
|
||
Not yet tested, but this seems simple and correct enough from my reading of Bugzilla::BugMail, Bugzilla::Mailer, and Bugzilla::Job::Mailer.
Assignee: email-notifications → reed
Status: NEW → ASSIGNED
Attachment #455788 -
Flags: review?(mkanat)
Assignee | ||
Updated•15 years ago
|
Target Milestone: --- → Bugzilla 4.0
Comment 2•15 years ago
|
||
Comment on attachment 455788 [details] [diff] [review]
patch - v1
I think you want FILTER time, not time2str. The Date header right now looks like:
Date: Wed, 31 Dec 1969 16:33:30 -0800
(And note that that timezone is wrong--it should be -0700 on my machine.)
Attachment #455788 -
Flags: review?(mkanat) → review-
Assignee | ||
Comment 3•15 years ago
|
||
Also untested, but since you're in a review swing, throwing it in your queue. I'll test it as soon as I get back home tonight.
Attachment #455788 -
Attachment is obsolete: true
Attachment #455991 -
Flags: review?(mkanat)
Comment 4•15 years ago
|
||
Comment on attachment 455991 [details] [diff] [review]
patch - v2
Hmm. This is technically still trunk...how hard would it be to make "to" an object in flagmail? Then you could just get the timezone.
Assignee | ||
Comment 5•15 years ago
|
||
(In reply to comment #4)
> (From update of attachment 455991 [details] [diff] [review])
> Hmm. This is technically still trunk...how hard would it be to make "to" an
> object in flagmail? Then you could just get the timezone.
That's basically what I started to do in bug 390586. I guess I just need to finish that patch.
Comment 6•15 years ago
|
||
Comment on attachment 455991 [details] [diff] [review]
patch - v2
Okay, this looks good, except that it adds an extra space between the weekday name and the day (probably because the day is only one digit), which, while technically fine per the RFC, the RFC also "recommends" that you don't add extra whitespace in this header.
Attachment #455991 -
Flags: review?(mkanat) → review-
Assignee | ||
Comment 7•15 years ago
|
||
Use %d instead of %e. This zero-pads the field instead, which is permitted, as per the RFC.
Attachment #455991 -
Attachment is obsolete: true
Attachment #456235 -
Flags: review?(mkanat)
Comment 8•15 years ago
|
||
Comment on attachment 456235 [details] [diff] [review]
patch - v3
Looks fine. :-)
Attachment #456235 -
Flags: review?(mkanat) → review+
Updated•15 years ago
|
Flags: approval+
Comment 9•15 years ago
|
||
I'm about to branch, so I checked this in myself. Thanks for the patch, reed! :-)
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Flag.pm
modified Bugzilla/Mailer.pm
modified template/en/default/email/newchangedmail.txt.tmpl
modified template/en/default/request/email.txt.tmpl
Committed revision 7294.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•