зеркало из https://github.com/mozilla/gecko-dev.git
fix for problem with views and mail filters involving msg status, 183158 r/sr/a=sspitzer
This commit is contained in:
Родитель
527edb5865
Коммит
b616f8b0f3
|
@ -674,7 +674,7 @@
|
|||
<xul:menupopup class="search-value-popup">
|
||||
<xul:menuitem value="2" stringTag="replied" class="search-value-menuitem"/>
|
||||
<xul:menuitem value="1" stringTag="read" class="search-value-menuitem"/>
|
||||
<xul:menuitem value="1048576" stringTag="new" class="search-value-menuitem"/>
|
||||
<xul:menuitem value="65536" stringTag="new" class="search-value-menuitem"/>
|
||||
<xul:menuitem value="4096" stringTag="forwarded" class="search-value-menuitem"/>
|
||||
</xul:menupopup>
|
||||
</xul:menulist>
|
||||
|
|
|
@ -302,15 +302,15 @@ void NS_MsgGetUntranslatedStatusName (uint32 s, nsCString *outName)
|
|||
|
||||
PRInt32 NS_MsgGetStatusValueFromName(char *name)
|
||||
{
|
||||
if (PL_strcmp("read", name))
|
||||
if (!strcmp("read", name))
|
||||
return MSG_FLAG_READ;
|
||||
if (PL_strcmp("replied", name))
|
||||
if (!strcmp("replied", name))
|
||||
return MSG_FLAG_REPLIED;
|
||||
if (PL_strcmp("forwarded", name))
|
||||
if (!strcmp("forwarded", name))
|
||||
return MSG_FLAG_FORWARDED;
|
||||
if (PL_strcmp("replied and forwarded", name))
|
||||
if (!strcmp("replied and forwarded", name))
|
||||
return MSG_FLAG_FORWARDED|MSG_FLAG_REPLIED;
|
||||
if (PL_strcmp("new", name))
|
||||
if (!strcmp("new", name))
|
||||
return MSG_FLAG_NEW;
|
||||
return 0;
|
||||
}
|
||||
|
@ -917,7 +917,7 @@ nsresult nsMsgSearchTerm::MatchRfc2047String (const char *rfc2047string,
|
|||
res = MatchString(stringToMatch ? stringToMatch : rfc2047string,
|
||||
nsnull, pResult);
|
||||
|
||||
PR_FREEIF(stringToMatch);
|
||||
PR_Free(stringToMatch);
|
||||
|
||||
return res;
|
||||
}
|
||||
|
@ -1089,8 +1089,8 @@ nsresult nsMsgSearchTerm::MatchRfc822String (const char *string, const char *cha
|
|||
addressPos += walkAddresses.Length() + 1;
|
||||
}
|
||||
|
||||
PR_FREEIF(names);
|
||||
PR_FREEIF(addresses);
|
||||
PR_Free(names);
|
||||
PR_Free(addresses);
|
||||
}
|
||||
*pResult = result;
|
||||
return err;
|
||||
|
|
Загрузка…
Ссылка в новой задаче