зеркало из https://github.com/mozilla/pjs.git
fix problem with compound filters and doesn't contain terms r=alecf,a=scottip 41312
This commit is contained in:
Родитель
9a2ca35105
Коммит
f662847ffe
|
@ -65,6 +65,7 @@ nsMsgSearchBoolExpression::nsMsgSearchBoolExpression (nsIMsgSearchTerm * newTerm
|
|||
m_term = newTerm;
|
||||
m_encodingStr = encodingStr;
|
||||
m_evalValue = evalValue;
|
||||
m_boolOp = nsMsgSearchBooleanOp::BooleanAND;
|
||||
|
||||
// this expression does not contain sub expressions
|
||||
m_leftChild = nsnull;
|
||||
|
|
|
@ -806,7 +806,7 @@ nsresult nsMsgSearchTerm::MatchString (const char *stringToMatch,
|
|||
break;
|
||||
case nsMsgSearchOp::DoesntContain:
|
||||
if ((nsnull != n_header) && ((n_str.GetBuffer())[0]) && /* !INTL_StrContains(csid, n_header, n_str) */
|
||||
PL_strstr(stringToMatch, n_str))
|
||||
!PL_strstr(stringToMatch, n_str))
|
||||
result = PR_TRUE;
|
||||
break;
|
||||
case nsMsgSearchOp::Is:
|
||||
|
@ -1258,7 +1258,7 @@ NS_IMPL_ISUPPORTS1(nsMsgSearchScopeTerm, nsIMsgSearchScopeTerm)
|
|||
NS_IMETHODIMP
|
||||
nsMsgSearchScopeTerm::GetFileStream(nsIInputStream** aResult)
|
||||
{
|
||||
*aResult = m_fileStream->GetIStream();
|
||||
*aResult = (m_fileStream) ? m_fileStream->GetIStream() : nsnull;
|
||||
NS_IF_ADDREF(*aResult);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче