Open Bug 982887 Opened 10 years ago Updated 1 year ago
For Email Address/has Card searches the whole addressbook instead of just a mailing list if called on mailing list
User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:27.0) Gecko/20100101 Firefox/27.0 (Beta/Release) Build ID: 20140212131424 Steps to reproduce: Calling cardForEmailAddress(...) on an nsIAbDirectory representing a mailing list gives unexpected results. From the semantics I'd expect it to just search the cards related to the mailing list. However, in reality the whole addressbook containing the mailing list is searched instead. The root of the cause is here: http://mxr.mozilla.org/comm-central/source/mailnews/addrbook/src/nsAbMDBDirectory.cpp#979 Expected results: I suggest mailing lists should be searched not by looking at the parent addressbook, but just "inside" the mailing list. If there is no searchable database for mailing lists, I suggest using a sequential search, which would not bring any excessive load in most cases.
You need to log in before you can comment on or make changes to this bug.