fix 360409, mail which claims to be a reply to itself, via reference and message-id headers, disappears, sr=mscott

This commit is contained in:
bienvenu%nventure.com 2006-11-14 00:27:26 +00:00
Родитель b1c39b8f05
Коммит a4e92a4f2c
1 изменённых файлов: 7 добавлений и 1 удалений

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

@ -3753,7 +3753,13 @@ nsresult nsMsgDatabase::ThreadNewHdr(nsMsgHdr* newHdr, PRBool &newThread)
replyToHdr->GetMessageKey(&replyToKey);
// message claims to be a reply to itself - ignore that since it leads to corrupt threading.
if (replyToKey == newHdrKey)
continue;
{
// bad references - throw them all away.
newHdr->ParseReferences("");
thread = nsnull;
break;
}
}
thread->GetThreadKey(&threadId);
newHdr->SetThreadId(threadId);