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 9215 77f0abdaca62a85cee4c3d152ef1d13b6d42368c
parent 9214 b301ba4dfd33837fc88bcf6131bb7025d8dfee8d
child 9216 bf785218e72cd0ec431a01a72c79c3751060d16e
push id273
push userbugzilla@standard8.plus.com
push dateWed, 07 Dec 2011 10:10:35 +0000
treeherdercomm-aurora@494757cf43d9 [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
@@ -3924,16 +3924,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, bool *aTooBig)
 {