mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
2ed8d0a4c3
commit
229e0f5868
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user