make local folder search reparse folders in the case of missing summary files, r=neil a=Standard8, bug 682731
authorDavid Bienvenu <bienvenu@nventure.com>
Mon, 29 Aug 2011 15:04:09 -0700
changeset 8857 ab0cc674e75ece65767c1274e6c8b1ab7abaf36e
parent 8856 bed118c12fa59970c6cb162ab59d73580c79aad2
child 8858 c1fdf33063f283f8887ed37a53715f91572fcb19
push idunknown
push userunknown
push dateunknown
reviewersneil, Standard8, bug
bugs682731
make local folder search reparse folders in the case of missing summary files, r=neil a=Standard8, bug 682731
mailnews/base/search/src/nsMsgLocalSearch.cpp
--- a/mailnews/base/search/src/nsMsgLocalSearch.cpp
+++ b/mailnews/base/search/src/nsMsgLocalSearch.cpp
@@ -302,16 +302,17 @@ nsresult nsMsgSearchOfflineMail::OpenSum
     }
     else
       return err; // not sure why m_folder wouldn't be set.
 
     switch (err)
     {
         case NS_OK:
             break;
+        case NS_MSG_ERROR_FOLDER_SUMMARY_MISSING:
         case NS_MSG_ERROR_FOLDER_SUMMARY_OUT_OF_DATE:
           {
             nsCOMPtr<nsIMsgLocalMailFolder> localFolder = do_QueryInterface(scopeFolder, &err);
             if (NS_SUCCEEDED(err) && localFolder)
             {
               nsCOMPtr<nsIMsgSearchSession> searchSession;
               m_scope->GetSearchSession(getter_AddRefs(searchSession));
               if (searchSession)