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
parent 9d083057a7
commit 37d4118e51

View File

@ -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);