Closed Bug 543088 Opened 14 years ago Closed 14 years ago

Autocomplete - primary email address no longer appears before additional email address (now sorted alphabetically)

Categories

(MailNews Core :: Address Book, defect)

defect
Not set
normal

Tracking

(blocking-thunderbird3.1 beta2+, thunderbird3.1 beta2-fixed, blocking-thunderbird3.0 .4+, thunderbird3.0 .4-fixed)

RESOLVED FIXED
Thunderbird 3.1b2
Tracking Status
blocking-thunderbird3.1 --- beta2+
thunderbird3.1 --- beta2-fixed
blocking-thunderbird3.0 --- .4+
thunderbird3.0 --- .4-fixed

People

(Reporter: standard8, Assigned: standard8)

References

()

Details

(Keywords: fixed-seamonkey2.0.4, regression, Whiteboard: [gs])

Attachments

(1 file)

This is a regression from Thunderbird 2.

In Thunderbird 2 for cards that contained both an email address ('primary') and an additional email address, the primary email address would always be listed first.

In Thunderbird 3, primary and additional are sorted alphabetically.


This bug will fix this one clear regression. Please do not suggest other sort orders/options/bugs here, but file them in separate bugs.
blocking-thunderbird3.0: needed → .3+
Am I seeing correctly that this is planned for TB 3.0.3+ and not 3.0.2?
(In reply to comment #3)
> Am I seeing correctly that this is planned for TB 3.0.3+ and not 3.0.2?

Yes.
Requesting "blocking1.9.0.18" because the "wanted" items are grayed out.
Flags: blocking1.9.0.18?
(In reply to comment #5)
> Requesting "blocking1.9.0.18" because the "wanted" items are grayed out.

The fact that it is blocking-thunderbird3.0 is enough of a flag, you don't need wanted as well.
Flags: blocking1.9.0.18?
(In reply to comment #6)
> The fact that it is blocking-thunderbird3.0 is enough of a flag

I thought that flag was outdated because "3.0" is already out the door. Perhaps it should say "3.0.x". Apologies for not reading the "runes" correctly. ;-)

BTW: What does ".3+" mean (after blocking-thunderbird3.0)? Zero point three plus? Partially (a third) blocking? I only knew ?, +, and - as entries.
(In reply to comment #7)
> BTW: What does ".3+" mean (after blocking-thunderbird3.0)? Zero point three
> plus? Partially (a third) blocking? I only knew ?, +, and - as entries.

See https://wiki.mozilla.org/Thunderbird/Release_Driving/Flags and if you have any more questions please ask on mdat.
Actually, I would be perfectly happy if the Secondary address got listed first, if and only if *it is the address that I send mail to most frequently*.   In other words, I don't think it makes sense to *always* put the primary address first.   By the same token, it doesn't make sense to sort them alphabetically as appears to be the case now.  Frequency of usage is much more important regardless of Primary or Secondary status.
I still support that the Primary address should be presented first.
I made a decision that this is the default order I wanted, as I added my email addresses to the address book.

I also see that this change will not appear until TB 3.0.3+. :-(

I got fooled into TB 3.0.1 and have returned (with effort)to 2.0.0.23
I'll be cautious before I make that move again!
(In reply to comment #11)
> I still support that the Primary address should be presented first.
> I made a decision that this is the default order I wanted, as I added my email
> addresses to the address book.

Seconded.  The meaning of "primary" is, well... primary.  It shouldn't be sorted below additional unless you have good evidence for doing this.

I'd be OK with having evidence overwhelm the express preference for the primary address, but the assignment of one address as primary /is/ an expressed preference, and I don't think we should run roughshod over it.
(In reply to comment #12)
> I don't think we should run roughshod over it.

Respecting the *frequency* with which the users *actually* use the address is hardly "running roughshod" over their choice (that they made once long ago).

Also, since Thunderbird's address book is so <polite>limited</polite>, perhaps most user's "primary" entry is simply the *first* e-mail they entered for that person.
blocking-thunderbird3.0: .3+ → .4+
(In reply to comment #13)
> (In reply to comment #12)
> > I don't think we should run roughshod over it.
> 
> Respecting the *frequency* with which the users *actually* use the address is
> hardly "running roughshod" over their choice (that they made once long ago).
> 
> Also, since Thunderbird's address book is so <polite>limited</polite>, perhaps
> most user's "primary" entry is simply the *first* e-mail they entered for that
> person.

With all due respect, you are misreading me.  After upgrade to TB 3, as far as I can tell, TB is doing nothing with EITHER my expressed preference by means of primary and additional email addresses OR any experience.

All I am getting now is alphabetized completion.  This is, for me, almost always exactly the wrong thing.  Here is what goes wrong:  

1.  I want to send one of my colleagues mail.
2.  My colleague has both a gmail address and an address at my company, whose name begins with "S"
3.  TB gives me the gmail address first (I have it because of google talk), although it is carefully NOT the primary address.
4.  Unless I am careful, information leaks out of my company and into Google, where I don't want it to go.  Also, my colleagues typically use Google just for IM, so they don't see these messages.

I DID think carefully about what address should be primary, and I DO regard ignoring this in favor of alphabetical order as running roughshod over my express preference.

I'm not asking for this to be enshrined forever --- if TB wants to learn from actual behavior, that's fine with me.  It will learn that I obey the primary/additional email distinction and you don't, and we both win.

But if TB is going on no information, I would very much prefer the main email address to be sorted first, instead of having alphabetical order.
I have to agree with Robert Goldman.

I see that this moved from 3.0.3 to 3.0.4. Any reason why it was de-prioritized?
blocking-thunderbird3.1: --- → rc1+
(In reply to comment #15)
> I see that this moved from 3.0.3 to 3.0.4. Any reason why it was
> de-prioritized?

3.0.3 was already released and had a single (important) bugfix.
Uh, sorry for the dupe, I did try and find if there was another bug out there. I might have depended on Google for that a tad too much.

I too have to agree with Robert Goldman. Voted in favor of solving this bug.

If you need me for testing or development please let me know (although my prime interest is in Java/security/cryptography).
Attached patch The fixSplinter Review
This should fix the issue. It adapts the sorting algorithm so that it knows about primary and secondary email addresses and takes appropraite action.

Patch includes unit tests for some of the cases I thought of.
Attachment #432916 - Flags: superreview?(bienvenu)
Attachment #432916 - Flags: review?(bienvenu)
Comment on attachment 432916 [details] [diff] [review]
The fix

this works - I had some confusion because my test primary address turned out to be in 3 separate address books, but once I cleared that up, the patch worked fine.
Attachment #432916 - Flags: superreview?(bienvenu)
Attachment #432916 - Flags: superreview+
Attachment #432916 - Flags: review?(bienvenu)
Attachment #432916 - Flags: review+
Comment on attachment 432916 [details] [diff] [review]
The fix

a=Standard8 for low-medium risk change to code which is well tested with existing unit tests.
Attachment #432916 - Flags: approval-thunderbird3.0.4+
Checked into all branches:

http://hg.mozilla.org/comm-central/rev/a65be9430322
http://hg.mozilla.org/releases/comm-1.9.1/rev/bbf299382de5
Status: NEW → RESOLVED
blocking-thunderbird3.1: rc1+ → beta2+
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → Thunderbird 3.1b2
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: