This looks like one of the main places where we call addToResult(...) function (see comment 49). If that's correct, one way of fixing this bug might be this:
Around here... http://mxr.mozilla.org/comm-central/source/mailnews/addrbook/src/nsAbAutoCompleteSearch.js#146 146 let email = card.primaryEmail; 147 if (email) 148 this._addToResult(commentColumn, directory, card, email, true, result); ...perhaps we could get the nick field as we now get the email field, and then add matches of the search fullstring (is that available here?) against nick to a separate result array, say resultTop. Then merge resultTop Array with result array. We also need to sort multiple nick matches on something (because unfortunately it's possible to have multiple cards with same nick). -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/956618 Title: Nickname not over-riding names in email address To manage notifications about this bug go to: https://bugs.launchpad.net/thunderbird/+bug/956618/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs