Bug 11054 Ignore (kill) a Subthread (branch: not the whole thread) (Troll)

handle failure [@ nsNNTPNewsgroupList::ApplyFilterHit]
r=Pidgeot18@gmail.com sr=neil


git-svn-id: svn://10.0.0.236/trunk@251521 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org
2008-05-10 21:56:22 +00:00
parent 6b2a5901ee
commit 9f5cc5f176

View File

@@ -790,11 +790,13 @@ NS_IMETHODIMP nsNNTPNewsgroupList::ApplyFilterHit(nsIMsgFilter *aFilter, nsIMsgW
break;
case nsMsgFilterAction::KillThread:
{
PRUint32 newFlags;
nsCOMPtr<nsIMsgThread> thread;
m_newsDB->GetThreadContainingMsgHdr(m_newMsgHdr, getter_AddRefs(thread) );
thread->GetFlags(&newFlags);
thread->SetFlags(newFlags | MSG_FLAG_IGNORED);
rv = m_newsDB->GetThreadContainingMsgHdr(m_newMsgHdr, getter_AddRefs(thread) );
if (NS_SUCCEEDED(rv)) {
PRUint32 newFlags;
thread->GetFlags(&newFlags);
thread->SetFlags(newFlags | MSG_FLAG_IGNORED);
}
}
break;
case nsMsgFilterAction::KillSubthread: