Add support for multiple authors (from) to gloda search
Categories
(MailNews Core :: Search, enhancement)
Tracking
(Not tracked)
People
(Reporter: alta88, Unassigned)
References
(Blocks 2 open bugs)
Details
(Keywords: leave-open)
Attachments
(3 files, 4 obsolete files)
19.61 KB,
patch
|
Details | Diff | Splinter Review | |
23.93 KB,
patch
|
Details | Diff | Splinter Review | |
3.70 KB,
patch
|
alta88
:
review+
jorgk-bmo
:
review+
|
Details | Diff | Splinter Review |
this wip seems to work, except for some reason the faceted results UI doesn't display the author as GlodaMessage instance doesn't get the string for the from property. asuth, any advice in general (other than lasciate ogni speranza..).
Comment 2•6 years ago
|
||
What I'm seeing is that GlodaMessage.from is not populated, and it should be done in GlodaFundAttr.process when getOrCreateMailIdentities() assigns to it. Of course the tests need to be updated for .from now being an array of identities rather than an identity. In general, I'm just wondering if there's anything else architecturally than needs to be considered for multiple authors, if you can recall. Thanks for any help you have time for.
It seems gloda results (Tb 60) don't correctly display non ascii From names, while at the same time there's a comment not to use MIME decoded variants on msgHdr (mime2DecodedAuthor) because comma parsing, which has likely been fixed with jsmime that postdates gloda. Hard to believe, and yet no bug for it.
wip2. fix failure to display to: if both from and to are the same.
wip3, this is fairly complete
- trim leading \n and whitespace in message content to not look sloppy
- display real identity name for myContact identities in from/to rather than rolled up contact name; that's just ultra confusing
- sometimes gloda message array properties are null and sometimes a zero length array; handle em both.
- a db built in Tb60 seems to have no ill effects after upgrading to a version with this patch and friends
still to investigate: sometimes a utf8 multiauthor from order is not as stored, ie it is of great importance to display the first author first (an academic will get it).
wip4, fix bug 1429747, Bug 1223951.
Part 1, consistency with message list strings in summary views.
Comment 10•6 years ago
|
||
Reporter | ||
Comment 11•6 years ago
|
||
updated for comments.
Comment 12•6 years ago
|
||
Are you sure this won't break any tests? Last time we added multiple authors in bug 1423487 we had various test failures. Let's see:
https://treeherder.mozilla.org/#/jobs?repo=try-comm-central&revision=cd5a2aadf0437a43e91e322563b3ec8b16f374ee
Comment 13•6 years ago
•
|
||
I'd say these failures come from here:
TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/folder-display/test-summarization.js | test-summarization.js::test_display_name_no_abook
TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/folder-display/test-summarization.js | test-summarization.js::test_display_name_abook
TEST-UNEXPECTED-FAIL | /builds/worker/workspace/build/tests/mozmill/folder-display/test-summarization.js | test-summarization.js::test_display_name_abook_no_pdn
The orange X's are known intermittent failures.
EDIT:
EXCEPTION: Expected to find sender named 'Andy Ulvaeus <andy@ulvaeus.invalid>', found 'Andy Ulvaeus'
EXCEPTION: Expected to find sender named 'My Friend', found 'Andy Ulvaeus'
EXCEPTION: Expected to find sender named 'Andy Ulvaeus <andy@ulvaeus.invalid>', found 'Andy Ulvaeus'
Reporter | ||
Comment 14•6 years ago
|
||
fixed for tests, thanks for checking.
Comment 15•6 years ago
|
||
Updated•6 years ago
|
Comment 16•6 years ago
|
||
Pushed by mozilla@jorgk.com:
https://hg.mozilla.org/comm-central/rev/5806b067a6a1
Part 1: Add support for multiple authors (add "et al" to summary views). r=mkmelin,jorgk
Reporter | ||
Comment 17•6 years ago
|
||
(In reply to Jorg K (GMT+2) from comment #15)
Comment on attachment 9065186 [details] [diff] [review]
authorsEtAl.patchLooks like a completely different patch now ;-) - I'll add myself to the
reviewers then ;-)Just out of interest: Is "et al." a commonly used abbreviation in
Anglo-Saxonia? Or do only people with a Latin degree understand it?
It is the accepted and well known representation in academic and legal writing. There are style guides to its usage, which most common is no comma before 'et al.' and no period after 'et' and violating that is akin to code syntax religious wars. Here, we are not exactly following printed usage, which dictates that there must be more than 3 or 6 (depending on guide) authors named before et al. can be used (since horizontal space is at a premium in From threadpane column). But 1 can be used if the others have already been referred to previously. Etc.
Updated•2 years ago
|
Description
•