From 4afd9b7ad808de43f288e91aaf2f6dfb28f2370d Mon Sep 17 00:00:00 2001 From: "scott%scott-macgregor.org" Date: Tue, 6 Apr 2004 18:10:45 +0000 Subject: [PATCH] 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 --- mozilla/mailnews/addrbook/src/nsAbAutoCompleteSession.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mozilla/mailnews/addrbook/src/nsAbAutoCompleteSession.cpp b/mozilla/mailnews/addrbook/src/nsAbAutoCompleteSession.cpp index 6d9ea7e6d14..31c137b0027 100644 --- a/mozilla/mailnews/addrbook/src/nsAbAutoCompleteSession.cpp +++ b/mozilla/mailnews/addrbook/src/nsAbAutoCompleteSession.cpp @@ -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 " + // 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 " + if (bIsMailList) + mParser->MakeFullAddressWString (pDisplayNameStr, pDisplayNameStr, getter_Copies(pEmailStr[0])); for (i = 0 ; i < MAX_NUMBER_OF_EMAIL_ADDRESSES; i ++) {