mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
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:
parent
23f75ba3df
commit
fdb54a8320
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user