make sure to flush the write data in case of the os file buffering scheme in play to cause append msg from file to fail

This commit is contained in:
jefft%netscape.com 1999-07-17 00:35:44 +00:00
parent 23f75ba3df
commit fdb54a8320

View File

@ -1619,6 +1619,7 @@ NS_IMETHODIMP nsImapMailFolder::EndCopy(PRBool copySucceeded)
if (copySucceeded && m_copyState && m_copyState->m_tmpFileSpec)
{
nsCOMPtr<nsIUrlListener> urlListener;
m_copyState->m_tmpFileSpec->flush();
m_copyState->m_tmpFileSpec->closeStream();
NS_WITH_SERVICE(nsIImapService, imapService, kCImapService, &rv);
if (NS_FAILED(rv)) return rv;