fix rss feed stores getting out of date, r=neil,a=Standard8, bug 687430
authorDavid Bienvenu <bienvenu@nventure.com>
Mon, 05 Dec 2011 08:15:18 -0800
changeset 9395 a032dacc2a253d67e0ecc9a8d3b58e8379cf9033
parent 9394 7b09fc4f9f86dac8adf815360b1cf035fa08e4b8
child 9396 e65027f51cf3f046cda6da0607fd6f79e5d9a336
push id266
push userbugzilla@standard8.plus.com
push dateWed, 07 Dec 2011 10:14:06 +0000
treeherdercomm-beta@e65027f51cf3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneil, Standard8, bug
bugs687430
fix rss feed stores getting out of date, r=neil,a=Standard8, bug 687430
mailnews/local/src/nsLocalMailFolder.cpp
--- a/mailnews/local/src/nsLocalMailFolder.cpp
+++ b/mailnews/local/src/nsLocalMailFolder.cpp
@@ -3919,16 +3919,18 @@ nsMsgLocalMailFolder::AddMessageBatch(PR
 
   // Flush performs an fsync and so must be done outside the loop for reasonable
   // performance.
   outFileStream->Flush();
   // The parser tells the mail db to forget about this stream.
   newMailParser->SetDBFolderStream(nsnull); // stream is going away
   outFileStream->Close();
   newMailParser->EndMsgDownload();
+  if (newMailParser->m_mailDB)
+    newMailParser->m_mailDB->SetSummaryValid(true);
 
   ReleaseSemaphore(static_cast<nsIMsgLocalMailFolder*>(this));
   return rv;
 }
 
 NS_IMETHODIMP
 nsMsgLocalMailFolder::WarnIfLocalFileTooBig(nsIMsgWindow *aWindow, PRBool *aTooBig)
 {