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
git-svn-id: svn://10.0.0.236/trunk@39798 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user