Bug #237553 --> Can't drag a mailing list to compose window from contacts bar or from the address book

sr=bienvenu
a=chofamnn


git-svn-id: svn://10.0.0.236/trunk@154541 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2004-04-06 18:10:45 +00:00
parent 613e369902
commit 4afd9b7ad8

View File

@@ -477,6 +477,14 @@ nsresult nsAbAutoCompleteSession::SearchCards(nsIAbDirectory* directory, nsAbAut
rv = card->GetNickName(getter_Copies(pNickNameStr));
if (NS_FAILED(rv))
continue;
// in the address book a mailing list does not have an email address field. However,
// we do "fix up" mailing lists in the UI sometimes to look like "My List <My List>"
// if we are looking up an address and we are comparing it to a mailing list to see if it is a match
// instead of just looking for an exact match on "My List", hijack the unused email address field
// and use that to test against "My List <My List>"
if (bIsMailList)
mParser->MakeFullAddressWString (pDisplayNameStr, pDisplayNameStr, getter_Copies(pEmailStr[0]));
for (i = 0 ; i < MAX_NUMBER_OF_EMAIL_ADDRESSES; i ++)
{