fix 448558, r=standard8, sr=neil, sometimes issue imap fetch (changedsince) on servers that don't support condstore
authorDavid Bienvenu <bienvenu@nventure.com>
Fri, 01 Aug 2008 14:36:23 -0700
changeset 51 cbc5d52cd47e3aa9623b7a7ef80f15042d1c1be9
parent 50 b7eb0e8bda3fb0f2d170ff8312770dad9561606a
child 52 4a777e17bf3005264042c2000f537b3bd284f715
push id46
push userbienvenu@nventure.com
push dateFri, 01 Aug 2008 21:36:39 +0000
treeherdercomm-central@cbc5d52cd47e [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersstandard8, neil, sometimes
bugs448558
fix 448558, r=standard8, sr=neil, sometimes issue imap fetch (changedsince) on servers that don't support condstore
mailnews/imap/src/nsImapProtocol.cpp
--- a/mailnews/imap/src/nsImapProtocol.cpp
+++ b/mailnews/imap/src/nsImapProtocol.cpp
@@ -3744,17 +3744,17 @@ void nsImapProtocol::ProcessMailboxUpdat
     // if the folder doesn't know about a the highest uid, or the flag state
     // is empty, and we're not using CondStore, we need a full sync.
     PRBool needFullFolderSync = !mFolderHighestUID || (flagStateEmpty && !UseCondStore());
 
     if (needFullFolderSync || needFolderSync)
     {
       nsCString idsToFetch("1:*");
       char fetchModifier[40] = "";
-      if (!needFullFolderSync && !GetShowDeletedMessages())
+      if (!needFullFolderSync && !GetShowDeletedMessages() && UseCondStore())
         PR_snprintf(fetchModifier, sizeof(fetchModifier), " (CHANGEDSINCE %llu)",
                     mFolderLastModSeq);
 
       FetchMessage(idsToFetch, kFlags, fetchModifier);
       // lets see if we should expunge during a full sync of flags.
       if (!DeathSignalReceived()) 
       {
         // if we did a CHANGEDSINCE fetch, do a sanity check on the msg counts