fix msgOffset for moved local messages, r=neil, bug 713958
authorDavid Bienvenu <bienvenu@nventure.com>
Wed, 28 Dec 2011 16:31:30 -0800
changeset 10310 79858d243f949e322399184f0166c71434c87498
parent 10309 349840cd946a01511ec142bd32b61a5de258c374
child 10311 e58436e512e5192aba6327b636ac2576e320a475
push id402
push userbugzilla@standard8.plus.com
push dateTue, 13 Mar 2012 21:17:18 +0000
treeherdercomm-beta@d080a8ebf16a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersneil, bug
bugs713958
fix msgOffset for moved local messages, r=neil, bug 713958
mailnews/local/src/nsLocalMailFolder.cpp
--- a/mailnews/local/src/nsLocalMailFolder.cpp
+++ b/mailnews/local/src/nsLocalMailFolder.cpp
@@ -2299,21 +2299,21 @@ NS_IMETHODIMP nsMsgLocalMailFolder::EndC
     if (!mCopyState->m_parseMsgState)
     {
       if (mCopyState->m_destDB)
       {
         if (mCopyState->m_newHdr)
         {
           newHdr = mCopyState->m_newHdr;
           CopyHdrPropertiesWithSkipList(newHdr, mCopyState->m_message,
-                                        NS_LITERAL_CSTRING("storeToken"));
+                                        NS_LITERAL_CSTRING("storeToken msgOffset"));
 //          UpdateNewMsgHdr(mCopyState->m_message, newHdr);
           // We need to copy more than just what UpdateNewMsgHdr does. In fact,
           // I think we want to copy almost every property other than
-          // storeToken.
+          // storeToken and msgOffset.
           mCopyState->m_destDB->AddNewHdrToDB(newHdr, PR_TRUE);
         }
         else
         {
         rv = mCopyState->m_destDB->CopyHdrFromExistingHdr(mCopyState->m_curDstKey,
           mCopyState->m_message, PR_TRUE,
           getter_AddRefs(newHdr));
         }