fix for phantom messages in db, sr=mscott 227472

This commit is contained in:
bienvenu%nventure.com 2004-02-20 19:45:33 +00:00
Родитель 7449a66af8
Коммит fc2b692038
1 изменённых файлов: 12 добавлений и 0 удалений

Просмотреть файл

@ -1042,7 +1042,19 @@ nsresult nsMsgThread::GetChildHdrForKey(nsMsgKey desiredKey, nsIMsgDBHdr **resul
(*result)->GetMessageKey(&msgKey);
if (msgKey == desiredKey)
{
nsMsgKey threadKey;
(*result)->GetThreadId(&threadKey);
if (threadKey != m_threadKey) // this msg isn't in this thread
{
PRUint32 msgSize;
(*result)->GetMessageSize(&msgSize);
if (msgSize == 0) // this is a phantom message - let's get rid of it.
RemoveChild(msgKey);
rv = NS_ERROR_UNEXPECTED;
}
break;
}
NS_RELEASE(*result);
}
}