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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.0

People

(Reporter: justdave, Assigned: reed)

References

Details

Attachments

(1 file, 2 obsolete files)

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: 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
Attached patch patch - v1 (obsolete) — Splinter Review
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)
Target Milestone: --- → Bugzilla 4.0
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-
Attached patch patch - v2 (obsolete) — Splinter Review
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 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.
(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 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-
Attached patch patch - v3Splinter Review
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 on attachment 456235 [details] [diff] [review] patch - v3 Looks fine. :-)
Attachment #456235 - Flags: review?(mkanat) → review+
Flags: approval+
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
Blocks: 585454
Keywords: relnote
Added to the release notes in bug 604256.
Keywords: relnote
Blocks: 652165
Blocks: 643910
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: