зеркало из https://github.com/mozilla/pjs.git
fix for bug #196777
[mailviews] case insensitivity in the "People I Know" view. [junk] case insensitivity in the junk mail white listing r=cavin, sr=bienvenu
This commit is contained in:
Родитель
ca1aa169f1
Коммит
4073481513
|
@ -118,7 +118,8 @@ interface nsIMdbRow;
|
|||
#define kMailListNickName "ListNickName"
|
||||
#define kMailListDescription "ListDescription"
|
||||
#define kMailListTotalAddresses "ListTotalAddresses"
|
||||
|
||||
// not shown in the UI
|
||||
#define kLowerPriEmailColumn "LowercasePrimaryEmail"
|
||||
%}
|
||||
|
||||
[scriptable, uuid(ca536e0e-1dd1-11b2-951a-e02b86e4f60e)]
|
||||
|
|
|
@ -1023,7 +1023,7 @@ NS_IMETHODIMP nsAbMDBDirectory::HasCardForEmailAddress(const char * aEmailAddres
|
|||
NS_ENSURE_SUCCESS(rv, rv);
|
||||
|
||||
nsCOMPtr<nsIAbCard> cardExists;
|
||||
mDatabase->GetCardFromAttribute(this, kPriEmailColumn, aEmailAddress, PR_TRUE /* caseInsensitive, see bug #191798 */, getter_AddRefs(cardExists));
|
||||
mDatabase->GetCardFromAttribute(this, kLowerPriEmailColumn, aEmailAddress, PR_TRUE /* caseInsensitive, see bug #191798 */, getter_AddRefs(cardExists));
|
||||
if (cardExists)
|
||||
*aCardExists = PR_TRUE;
|
||||
return NS_OK;
|
||||
|
|
|
@ -87,8 +87,6 @@ const char *kDataRowScope = "ns:addrbk:db:row:scope:data:all";
|
|||
#define PURGE_CUTOFF_COUNT 50
|
||||
|
||||
const char *kRecordKeyColumn = "RecordKey";
|
||||
const char *kLowerPriEmailColumn = "LowercasePrimaryEmail";
|
||||
|
||||
const char *kLastRecordKeyColumn = "LastRecordKey";
|
||||
|
||||
const char *kMailListTotalLists = "ListTotalLists"; // total number of mail list in a mailing list
|
||||
|
@ -1054,7 +1052,7 @@ nsresult nsAddrDatabase::UpdateLowercaseEmailListName()
|
|||
return NS_ERROR_FAILURE;
|
||||
|
||||
do
|
||||
{ //add lowercase primary emial to each card and mailing list row
|
||||
{ //add lowercase primary email to each card and mailing list row
|
||||
merror = rowCursor->NextRow(GetEnv(), &findRow, &rowPos);
|
||||
if (merror ==NS_OK && findRow)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче