speed up copying of multiple local msgs r/sr=sspitzer 183560

This commit is contained in:
bienvenu%netscape.com 2003-04-19 21:38:30 +00:00
Родитель 382f78c2b5
Коммит 7619c18d99
1 изменённых файлов: 1 добавлений и 4 удалений

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

@ -2576,10 +2576,7 @@ NS_IMETHODIMP nsMsgLocalMailFolder::EndCopy(PRBool copySucceeded)
mCopyState->m_fromLineSeen = PR_FALSE;
// flush the copied message.
if (mCopyState->m_fileStream)
{
rv = mCopyState->m_fileStream->flush();
NS_ENSURE_SUCCESS(rv,rv);
}
mCopyState->m_fileStream->seek(PR_SEEK_CUR, 0); // seeking causes a flush, w/o syncing
}
//Copy the header to the new database
if(copySucceeded && mCopyState->m_message)