fix filter after the fact not to have cumulative matches, r/sr=sspitzer, 168551

This commit is contained in:
bienvenu%netscape.com 2002-09-13 19:53:09 +00:00
parent 7ae5c1cecb
commit e100152246

View File

@ -471,6 +471,7 @@ NS_IMETHODIMP nsMsgFilterAfterTheFact::OnSearchDone(nsresult status)
NS_IMETHODIMP nsMsgFilterAfterTheFact::OnNewSearch()
{
m_searchHits.RemoveAll();
m_searchHitHdrs->Clear();
return NS_OK;
}
@ -556,7 +557,7 @@ nsresult nsMsgFilterAfterTheFact::ApplyFilter()
}
nsCOMPtr<nsIMsgCopyService> copyService = do_GetService(NS_MSGCOPYSERVICE_CONTRACTID, &rv);
if (copyService)
return copyService->CopyMessages(m_curFolder, m_searchHitHdrs, destIFolder, PR_TRUE, this, m_msgWindow, PR_FALSE);
return copyService->CopyMessages(m_curFolder, m_searchHitHdrs, destIFolder, PR_TRUE, this, m_msgWindow, PR_FALSE);
}
}
break;