make sure we reset the fPartialUidFetch flag when resetting the flag state, which should help with 456601, where we lose track of most messsages in a folder w/ condstoore r/sr=dmose
authorDavid Bienvenu <bienvenu@nventure.com>
Tue, 23 Sep 2008 17:01:59 -0700
changeset 415 0873795c1cc4502a4b90b9354c9a9d6e27fb7e63
parent 414 bf5ecaf124165107fc4a961663fe38222d05f513
child 416 cf06d06fbff078a944d0bcda2247b0f51be6aca8
push idunknown
push userunknown
push dateunknown
bugs456601
make sure we reset the fPartialUidFetch flag when resetting the flag state, which should help with 456601, where we lose track of most messsages in a folder w/ condstoore r/sr=dmose
mailnews/imap/src/nsImapFlagAndUidState.cpp
--- a/mailnews/imap/src/nsImapFlagAndUidState.cpp
+++ b/mailnews/imap/src/nsImapFlagAndUidState.cpp
@@ -179,16 +179,17 @@ nsImapFlagAndUidState::SetSupportedUserF
 NS_IMETHODIMP nsImapFlagAndUidState::Reset(PRUint32 howManyLeft)
 {
   PR_CEnterMonitor(this);
   if (!howManyLeft)
     fNumberOfMessagesAdded = fNumberDeleted = 0; // used space is still here
   if (m_customFlagsHash.IsInitialized())
     m_customFlagsHash.EnumerateRead(FreeCustomFlags, nsnull);
   m_customFlagsHash.Clear();
+  fPartialUIDFetch = PR_TRUE;
   PR_CExitMonitor(this);
   return NS_OK;
 }
 
 
 // Remove (expunge) a message from our array, since now it is gone for good
 
 NS_IMETHODIMP nsImapFlagAndUidState::ExpungeByIndex(PRUint32 msgIndex)