From d65429603584d5099e528c335abca3c0996b0ccb Mon Sep 17 00:00:00 2001 From: "naving%netscape.com" Date: Wed, 4 Jul 2001 04:02:02 +0000 Subject: [PATCH] 85632 r/sr=bienvenu prevent .msf corruption if parsing of inbox and biff goes on simultaneously. git-svn-id: svn://10.0.0.236/trunk@98620 18797224-902f-48f8-a5cc-f745e15eee43 --- .../mailnews/local/src/nsPop3IncomingServer.cpp | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/mozilla/mailnews/local/src/nsPop3IncomingServer.cpp b/mozilla/mailnews/local/src/nsPop3IncomingServer.cpp index 3e42868b55d..8ce9240610c 100644 --- a/mozilla/mailnews/local/src/nsPop3IncomingServer.cpp +++ b/mozilla/mailnews/local/src/nsPop3IncomingServer.cpp @@ -195,7 +195,19 @@ NS_IMETHODIMP nsPop3IncomingServer::PerformBiff() PRBool downloadOnBiff = PR_FALSE; rv = GetDownloadOnBiff(&downloadOnBiff); if (downloadOnBiff) - rv = pop3Service->GetNewMail(msgWindow, nsnull, inbox, this, nsnull); + { + nsCOMPtr localInbox = do_QueryInterface(inbox, &rv); + PRBool parsingInbox; + if (localInbox && NS_SUCCEEDED(rv)) + { + rv = localInbox->GetParsingInbox(&parsingInbox); + NS_ENSURE_SUCCESS(rv,rv); + if (!parsingInbox) + rv = pop3Service->GetNewMail(msgWindow, nsnull, inbox, this, nsnull); + else + rv = localInbox->SetCheckForNewMessagesAfterParsing(PR_TRUE); + } + } else rv = pop3Service->CheckForNewMail(msgWindow, nsnull, inbox, this, nsnull);