зеркало из https://github.com/mozilla/pjs.git
more work for offline imap, add offline imap operation class r=sspitzer, sr=mscott 15865
This commit is contained in:
Родитель
1c93fe96b9
Коммит
f562f06a8d
|
@ -38,6 +38,7 @@ CPPSRCS = \
|
|||
nsMailDatabase.cpp \
|
||||
nsImapMailDatabase.cpp \
|
||||
nsMsgThread.cpp \
|
||||
nsMsgOfflineImapOperation.cpp \
|
||||
$(NULL)
|
||||
|
||||
# we don't want the shared lib, but we want to force the creation of a static lib.
|
||||
|
|
|
@ -42,6 +42,7 @@ CPP_OBJS= .\$(OBJDIR)\nsMsgDatabase.obj \
|
|||
.\$(OBJDIR)\nsNewsDatabase.obj \
|
||||
.\$(OBJDIR)\nsMsgHdr.obj \
|
||||
.\$(OBJDIR)\nsMsgThread.obj \
|
||||
.\$(OBJDIR)\nsMsgOfflineImapOperation.obj \
|
||||
$(NULL)
|
||||
|
||||
include <$(DEPTH)\config\rules.mak>
|
||||
|
|
|
@ -500,7 +500,7 @@ NS_IMETHODIMP nsMailDatabase::GetOfflineOpForKey(nsMsgKey msgKey, PRBool create,
|
|||
|
||||
if (err == NS_OK && offlineOpRow)
|
||||
{
|
||||
// *offlineOp = new nsMsgOfflineImapOperation(this, offlineOpRow);
|
||||
*offlineOp = new nsMsgOfflineImapOperation(this, offlineOpRow);
|
||||
}
|
||||
if (!hasOid && m_dbFolderInfo)
|
||||
{
|
||||
|
@ -734,12 +734,10 @@ nsresult nsMsgOfflineOpEnumerator::PrefetchNext()
|
|||
if (offlineOpRow->GetOid(mDB->GetEnv(), &outOid) == NS_OK)
|
||||
key = outOid.mOid_Id;
|
||||
|
||||
#ifdef DOING_OFFLINE
|
||||
nsIMsgOfflineImapOperation *op = new nsMsgOfflineImapOperation(mDB, offlineOpRow);
|
||||
mResultOp = op;
|
||||
if (!op)
|
||||
return NS_ERROR_OUT_OF_MEMORY;
|
||||
#endif
|
||||
|
||||
if (mResultOp)
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче