fix tag loss with condstore servers, a=standard8, bug 678148 COMM70_20110831_RELBRANCH THUNDERBIRD_7_0b2_BUILD2 THUNDERBIRD_7_0b2_RELEASE
authorDavid Bienvenu <bienvenu@nventure.com>
Fri, 02 Sep 2011 07:55:18 -0700
branchCOMM70_20110831_RELBRANCH
changeset 8427 900579ee49e0031b8b4dc7879e57332d60904c5f
parent 8420 c949422eb69f67a197409b04e1eebb62879ec0d5
child 8428 5dae0c38d359c3b55aa77e3ab8a82f99a31ee6f0
push idunknown
push userunknown
push dateunknown
reviewersstandard8, bug
bugs678148
fix tag loss with condstore servers, a=standard8, bug 678148
mailnews/imap/src/nsImapServerResponseParser.cpp
--- a/mailnews/imap/src/nsImapServerResponseParser.cpp
+++ b/mailnews/imap/src/nsImapServerResponseParser.cpp
@@ -1716,17 +1716,17 @@ void nsImapServerResponseParser::flags()
     }
     if (!knownFlag && fFlagState)
     {
       nsCAutoString flag(fNextToken);
       PRInt32 parenIndex = flag.FindChar(')');
       if (parenIndex > 0)
         flag.SetLength(parenIndex);
       messageFlags |= kImapMsgCustomKeywordFlag;
-      if (CurrentResponseUID() != nsMsgKey_None)
+      if (CurrentResponseUID() != nsMsgKey_None && CurrentResponseUID() != 0)
         fFlagState->AddUidCustomFlagPair(CurrentResponseUID(), flag.get());
       else
         fCustomFlags.AppendCString(flag);
     }
     if (PL_strcasestr(fNextToken, ")"))
     {
       // eat token chars until we get the ')'
       while (*fNextToken != ')')