Fix for bug 113421. Closed the msg db after a folder is imported so that the db can be re-generated when the imported folder is re-opened. r=naving, sr=bienvenu.

This commit is contained in:
cavin%netscape.com 2002-01-31 01:28:27 +00:00
parent 2ed8d0a4c3
commit 229e0f5868

View File

@ -974,6 +974,12 @@ ImportMailThread( void *stuff)
outBox->CloseStream();
// OK, we've copied the actual folder/file over if the folder size is not 0
// (ie, the msg summary is no longer valid) so close the msg database so that
// when the folder is reopened the folder db can be reconstructed (which
// validates msg summary and forces folder to be reparsed).
newFolder->ForceDBClosed();
if (fatalError) {
IMPORT_LOG1( "*** ImportMailbox returned fatalError, mailbox #%d\n", (int) i);
pData->fatalError = PR_TRUE;