Closed
Bug 663747
Opened 13 years ago
Closed 13 years ago
Add an option to make email subjects for new bugs compatible with gmail's threading
Categories
(Bugzilla :: Email Notifications, enhancement)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.4
People
(Reporter: glob, Assigned: glob)
References
Details
Attachments
(1 file, 3 obsolete files)
1.82 KB,
patch
|
gerv
:
review+
|
Details | Diff | Splinter Review |
Spun off bug 650575; add a user setting to strip the "New: " prefix from subjects of new mail, in order to make gmail's threading work (gmail honours the subject only when it comes to threading, it ignores In-Reply-To).
mkanat said "It would be even cooler if it defaulted to "on" for people whose account was @gmail.com or @googlemail.com".
Comment 2•13 years ago
|
||
(In reply to comment #1)
> mkanat said "It would be even cooler if it defaulted to "on" for people
> whose account was @gmail.com or @googlemail.com".
I don't think we should hardcode such tricks. Personally, I use Thunderbird to read emails, and the world is not limited to Gmail either, so no reason to treat it differently, IMO. We should always start with default off.
Comment 3•13 years ago
|
||
(In reply to comment #2)
> (In reply to comment #1)
> > mkanat said "It would be even cooler if it defaulted to "on" for people
> > whose account was @gmail.com or @googlemail.com".
>
> I don't think we should hardcode such tricks. Personally, I use Thunderbird
> to read emails, and the world is not limited to Gmail either, so no reason
> to treat it differently, IMO. We should always start with default off.
I agree with LpSolit that we just keep this simple as possible. The user will know whether they need this functionality or not and just make it either on or off. Not on but only for certain addresses.
dkl
Comment 4•13 years ago
|
||
Yeah, I agree with LpSolit, let's not default it to on for anybody.
Target Milestone: --- → Bugzilla 5.0
Comment 5•13 years ago
|
||
glob, I assume this should be assigned to you?
Assignee: email-notifications → glob
(Quoting bug 650575 comment #34)
> glob: Particularly if this goes upstream, and even if not, can we remove the
> Gmail-specific naming in this feature? From the comments, it looks like
> several people have this problem, and I bet it's not only gmail which has a
> bad threading algorithm. A better name for the preference would be:
>
> Add "New:" to subject line of email sent when a new bug is filed
> and default it to "on".
Attachment #539786 -
Flags: review?(mkanat)
Comment 8•13 years ago
|
||
Comment on attachment 539786 [details] [diff] [review]
patch v1
Review of attachment 539786 [details] [diff] [review]:
-----------------------------------------------------------------
::: Bugzilla/Install.pm
@@ +90,5 @@
> timezone => { subclass => 'Timezone', default => 'local' },
> # 2011-02-07 dkl@mozilla.com -- Bug 580490
> quicksearch_fulltext => { options => ['on', 'off'], default => 'on' },
> + # 2011-06-16 glob@mozilla.com -- Bug 663747
> + new_subject_prefix => { options => ['on', 'off'], default => 'on' },
Let's call it bugmail_new_prefix.
::: template/en/default/email/bugmail-header.txt.tmpl
@@ +22,4 @@
>
> [% PROCESS "global/field-descs.none.tmpl" %]
> [% PROCESS "global/reason-descs.none.tmpl" %]
> +[% show_new = (bug.lastdiffed ? 0 : 1)
You probably don't need the ?: here anymore.
@@ +22,5 @@
>
> [% PROCESS "global/field-descs.none.tmpl" %]
> [% PROCESS "global/reason-descs.none.tmpl" %]
> +[% show_new = (bug.lastdiffed ? 0 : 1)
> + && (to_user.settings.new_subject_prefix.value == 'on') %]
Is this the only thing that accesses to_user.settings in bugmail, right now? We should make sure that this doesn't significantly degrade email-sending performance.
::: template/en/default/global/setting-descs.none.tmpl
@@ +49,4 @@
> "timezone" => "Timezone used to display dates and times",
> "local" => "Same as the server",
> "quicksearch_fulltext" => "Include comments when performing quick searches (slower)",
> + "new_subject_prefix" => "Add 'New:' to subject line of email sent when a new $terms.bug is filed",
This is very long, does it wrap when shown in the UI? (I don't want to mess up the General Preferences UI.)
Attachment #539786 -
Flags: review?(mkanat) → review-
Comment 9•13 years ago
|
||
I don't think we should address this in such a user-visible way. We don't care much about broken browsers, so why should we care much about broken e-mail clients? Let's care a little, all right, if we find a way. But a user pref is too much imho, and I'd say if we don't find a way to care silently, we shouldn't care at all.
Comment 10•13 years ago
|
||
Hey Marc. Normally I'd agree with you, but this affects such a large portion of our userbase (I hear about this problem *all the time*) and it's basically impossible to automatically know how people want it to behave (since many people use IMAP clients even with gmail) that I think in this case, it's worth a specific user preference.
Comment 11•13 years ago
|
||
Hmmmmm... Thinking about this I'd rather see the 'New' marker removed than a pref added...
Assignee | ||
Comment 12•13 years ago
|
||
(In reply to comment #8)
> > [% PROCESS "global/field-descs.none.tmpl" %]
> > [% PROCESS "global/reason-descs.none.tmpl" %]
> > +[% show_new = (bug.lastdiffed ? 0 : 1)
> > + && (to_user.settings.new_subject_prefix.value == 'on') %]
>
> Is this the only thing that accesses to_user.settings in bugmail, right now?
yes.
> We should make sure that this doesn't significantly degrade email-sending
> performance.
on my system the query executed to read the settings takes 0.3 seconds cold (it being the first query run on the database after mysql was started), and 0.000 secs warm. and user settings are cached, so we should be ok here :)
> This is very long, does it wrap when shown in the UI? (I don't want to mess
> up the General Preferences UI.)
it's only a few pixels longer than "Quote the associated comment when you click on its reply link".
when resizing the window, the header wraps before this text does.
Assignee | ||
Comment 13•13 years ago
|
||
Attachment #539786 -
Attachment is obsolete: true
Attachment #540009 -
Flags: review?(mkanat)
Assignee | ||
Comment 14•13 years ago
|
||
Comment on attachment 540009 [details] [diff] [review]
patch v2
found a small bug
Attachment #540009 -
Attachment is obsolete: true
Attachment #540009 -
Flags: review?(mkanat)
Assignee | ||
Comment 15•13 years ago
|
||
'isnew' is needed for the X-Bugzilla-Type header, so it needs to be retained.
Attachment #540392 -
Flags: review?(mkanat)
Comment 16•13 years ago
|
||
(In reply to comment #12)
> on my system the query executed to read the settings takes 0.3 seconds cold
> (it being the first query run on the database after mysql was started), and
> 0.000 secs warm. and user settings are cached, so we should be ok here :)
No, we won't be okay. Those are new User objects for every single recipient on every single bug that's being changed. There isn't any caching that will assist us there.
Could you test how it affects performance on a bug with a few thousand users on the CC list and a profile_setting table approximately the size of bmo's? We should assume the cold time, since most people don't have MySQL set up with enough cache space to keep all this settings info in RAM. (Make sure you're testing with the O_DIRECT access method in my.cnf, too, so that the disk's cache isn't affecting things either.)
I'm sorry to make you go through a hassle like this, but when we've made even small performance changes in email, before, it has significantly impacted the performance of updating bugs, and I'd like to avoid regressing that if at all possible.
> it's only a few pixels longer than "Quote the associated comment when you
> click on its reply link".
> when resizing the window, the header wraps before this text does.
Okay.
Comment 17•13 years ago
|
||
(In reply to comment #11)
> Hmmmmm... Thinking about this I'd rather see the 'New' marker removed than a
> pref added...
That's a possibility. I think we should do the preference as a transitional thing, to see how people use it a bit, before we make the change everywhere. I do sort of like the "New" markers, myself.
Assignee | ||
Comment 18•13 years ago
|
||
(In reply to comment #16)
> Could you test how it affects performance on a bug with a few thousand
> users on the CC list and a profile_setting table approximately the size of
> bmo's?
these tests were done on a sanitised bmo dump, using the most cc'd bug on bmo, with 327 cc's and 324 votes, resulting in 450 email notifications for each change. mysqld was restarted between each test run.
all times are hires wallclock seconds, as measured by Benchmark:
without patch:
8.49903, 8.02419, 8.0225
with patch:
8.00234, 7.78278, 7.54392, 7.74295, 7.78025, 7.78716
after getting quicker responses with the patch, i backed out the template change and retested:
7.4803, 8.84966, 8.60096
Comment 19•13 years ago
|
||
Comment on attachment 540392 [details] [diff] [review]
patch v3
Okay, sounds great! Thanks for doing that testing, I'm happy to know in advance that we're probably not regressing performance here. :-)
Attachment #540392 -
Flags: review?(mkanat) → review+
Updated•13 years ago
|
Flags: approval?
Comment 20•13 years ago
|
||
Comment on attachment 540392 [details] [diff] [review]
patch v3
>=== modified file 'Bugzilla/Install.pm'
> # 2011-02-07 dkl@mozilla.com -- Bug 580490
> quicksearch_fulltext => { options => ['on', 'off'], default => 'on' },
>+ # 2011-06-16 glob@mozilla.com -- Bug 663747
>+ bugmail_new_prefix => { options => ['on', 'off'], default => 'on' },
Bitrot due to bug 589128. Holding approval till a new patch is attached.
Comment 21•13 years ago
|
||
Update for bitrot.
Attachment #540392 -
Attachment is obsolete: true
Attachment #619495 -
Flags: review?(mkanat)
Comment 22•13 years ago
|
||
Comment on attachment 619495 [details] [diff] [review]
patch v4
r=gerv.
Gerv
Attachment #619495 -
Flags: review?(mkanat) → review+
Updated•13 years ago
|
Assignee | ||
Comment 23•13 years ago
|
||
thanks for updating the patch selsky!
Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Install.pm
modified template/en/default/email/bugmail-header.txt.tmpl
modified template/en/default/global/setting-descs.none.tmpl
Committed revision 8222.
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•