fix bloat of imap msg dbs when headers have been downloaded r=naving, sr=sspitzer 114487

This commit is contained in:
bienvenu%netscape.com 2001-12-11 04:01:20 +00:00
parent b659745e81
commit 5388e1b43b

View File

@ -2554,6 +2554,7 @@ NS_IMETHODIMP nsImapMailFolder::NormalEndHeaderParseStream(nsIImapProtocol*
if (mDatabase && (!m_msgMovedByFilter || ShowDeletedMessages()))
mDatabase->AddNewHdrToDB(newMsgHdr, PR_TRUE);
m_msgParser->Clear(); // clear out parser, because it holds onto a msg hdr.
m_msgParser->SetMailDB(nsnull); // tell it to let go of the db too.
// I don't think we want to do this - it does bad things like set the size incorrectly.
// m_msgParser->FinishHeader();
}