Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsMsgDatabase.cpp File Reference
#include <sys/stat.h>
#include "nscore.h"
#include "msgCore.h"
#include "nsMsgDatabase.h"
#include "nsDBFolderInfo.h"
#include "nsMsgKeySet.h"
#include "nsIEnumerator.h"
#include "nsMsgThread.h"
#include "nsFileStream.h"
#include "nsDependentSubstring.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsIMsgHeaderParser.h"
#include "nsMsgBaseCID.h"
#include "nsMorkCID.h"
#include "nsIMdbFactoryFactory.h"
#include "prlog.h"
#include "prprf.h"
#include "nsTime.h"
#include "nsIFileSpec.h"
#include "nsLocalFolderSummarySpec.h"
#include "nsMsgDBCID.h"
#include "nsILocale.h"
#include "nsLocaleCID.h"
#include "nsMsgMimeCID.h"
#include "nsILocaleService.h"
#include "nsMsgFolderFlags.h"
#include "nsIMsgAccountManager.h"
#include "nsIMsgFolderCache.h"
#include "nsIMsgFolderCacheElement.h"
#include "MailNewsTypes2.h"
#include "nsICollation.h"
#include "nsCollationCID.h"
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"

Go to the source code of this file.

Classes

class  nsMsgDBEnumerator
class  nsMsgDBThreadEnumerator

Defines

#define MSG_HASH_SIZE   512

Functions

static NS_DEFINE_CID (kCMorkFactory, NS_MORK_CID)
static NS_DEFINE_CID (kCollationFactoryCID, NS_COLLATIONFACTORY_CID)
static nsresult nsMsgFlagSetFilter (nsIMsgDBHdr *msg, void *closure)

Variables

const PRInt32 kMaxHdrsInCache = 512
static const nsMsgKey kAllMsgHdrsTableKey = 1
static const nsMsgKey kTableKeyForThreadOne = 0xfffffffe
static const nsMsgKey kAllThreadsTableKey = 0xfffffffd
static const nsMsgKey kFirstPseudoKey = 0xfffffff0
static const nsMsgKey kIdStartOfFake = 0xffffff80
static PRBool gGotGlobalPrefs = PR_FALSE
static PRBool gThreadWithoutRe = PR_TRUE
static PRBool gStrictThreading = PR_FALSE
const char * kMsgHdrsScope = "ns:msg:db:row:scope:msgs:all"
const char * kMsgHdrsTableKind = "ns:msg:db:table:kind:msgs"
const char * kThreadTableKind = "ns:msg:db:table:kind:thread"
const char * kThreadHdrsScope = "ns:msg:db:row:scope:threads:all"
const char * kAllThreadsTableKind = "ns:msg:db:table:kind:allthreads"
const char * kSubjectColumnName = "subject"
const char * kSenderColumnName = "sender"
const char * kMessageIdColumnName = "message-id"
const char * kReferencesColumnName = "references"
const char * kRecipientsColumnName = "recipients"
const char * kDateColumnName = "date"
const char * kMessageSizeColumnName = "size"
const char * kFlagsColumnName = "flags"
const char * kPriorityColumnName = "priority"
const char * kLabelColumnName = "label"
const char * kStatusOffsetColumnName = "statusOfset"
const char * kNumLinesColumnName = "numLines"
const char * kCCListColumnName = "ccList"
const char * kMessageThreadIdColumnName = "msgThreadId"
const char * kNumReferencesColumnName = "numRefs"
const char * kThreadFlagsColumnName = "threadFlags"
const char * kThreadIdColumnName = "threadId"
const char * kThreadChildrenColumnName = "children"
const char * kThreadUnreadChildrenColumnName = "unreadChildren"
const char * kThreadSubjectColumnName = "threadSubject"
const char * kMessageCharSetColumnName = "msgCharSet"
const char * kThreadParentColumnName = "threadParent"
const char * kThreadRootColumnName = "threadRoot"
const char * kThreadNewestMsgDateColumnName = "threadNewestMsgDate"
const char * kOfflineMsgOffsetColumnName = "msgOffset"
const char * kOfflineMsgSizeColumnName = "offlineMsgSize"
const char * kFixedBadRefThreadingProp = "fixedBadRefThreading"

Define Documentation

#define MSG_HASH_SIZE   512

Definition at line 96 of file nsMsgDatabase.cpp.


Function Documentation

static NS_DEFINE_CID ( kCMorkFactory  ,
NS_MORK_CID   
) [static]
static NS_DEFINE_CID ( kCollationFactoryCID  ,
NS_COLLATIONFACTORY_CID   
) [static]
static nsresult nsMsgFlagSetFilter ( nsIMsgDBHdr msg,
void closure 
) [static]

Definition at line 3018 of file nsMsgDatabase.cpp.

{
  PRUint32 msgFlags, desiredFlags;
  desiredFlags = * (PRUint32 *) closure;
  msg->GetFlags(&msgFlags);
  return (msgFlags & desiredFlags) ? NS_OK : NS_ERROR_FAILURE;
}

Here is the caller graph for this function:


Variable Documentation

Definition at line 239 of file nsMsgDatabase.cpp.

Definition at line 241 of file nsMsgDatabase.cpp.

Definition at line 240 of file nsMsgDatabase.cpp.

Definition at line 101 of file nsMsgDatabase.cpp.

const nsMsgKey kAllThreadsTableKey = 0xfffffffd [static]

Definition at line 103 of file nsMsgDatabase.cpp.

const char* kAllThreadsTableKind = "ns:msg:db:table:kind:allthreads"

Definition at line 1489 of file nsMsgDatabase.cpp.

const char* kCCListColumnName = "ccList"

Definition at line 1502 of file nsMsgDatabase.cpp.

const char* kDateColumnName = "date"

Definition at line 1495 of file nsMsgDatabase.cpp.

const nsMsgKey kFirstPseudoKey = 0xfffffff0 [static]

Definition at line 104 of file nsMsgDatabase.cpp.

const char* kFixedBadRefThreadingProp = "fixedBadRefThreading"

Definition at line 1518 of file nsMsgDatabase.cpp.

const char* kFlagsColumnName = "flags"

Definition at line 1497 of file nsMsgDatabase.cpp.

const nsMsgKey kIdStartOfFake = 0xffffff80 [static]

Definition at line 105 of file nsMsgDatabase.cpp.

const char* kLabelColumnName = "label"

Definition at line 1499 of file nsMsgDatabase.cpp.

Definition at line 98 of file nsMsgDatabase.cpp.

const char* kMessageCharSetColumnName = "msgCharSet"

Definition at line 1510 of file nsMsgDatabase.cpp.

const char* kMessageIdColumnName = "message-id"

Definition at line 1492 of file nsMsgDatabase.cpp.

const char* kMessageSizeColumnName = "size"

Definition at line 1496 of file nsMsgDatabase.cpp.

const char* kMessageThreadIdColumnName = "msgThreadId"

Definition at line 1503 of file nsMsgDatabase.cpp.

const char* kMsgHdrsScope = "ns:msg:db:row:scope:msgs:all"

Definition at line 1485 of file nsMsgDatabase.cpp.

const char* kMsgHdrsTableKind = "ns:msg:db:table:kind:msgs"

Definition at line 1486 of file nsMsgDatabase.cpp.

const char* kNumLinesColumnName = "numLines"

Definition at line 1501 of file nsMsgDatabase.cpp.

const char* kNumReferencesColumnName = "numRefs"

Definition at line 1504 of file nsMsgDatabase.cpp.

const char* kOfflineMsgOffsetColumnName = "msgOffset"

Definition at line 1514 of file nsMsgDatabase.cpp.

const char* kOfflineMsgSizeColumnName = "offlineMsgSize"

Definition at line 1515 of file nsMsgDatabase.cpp.

const char* kPriorityColumnName = "priority"

Definition at line 1498 of file nsMsgDatabase.cpp.

const char* kRecipientsColumnName = "recipients"

Definition at line 1494 of file nsMsgDatabase.cpp.

const char* kReferencesColumnName = "references"

Definition at line 1493 of file nsMsgDatabase.cpp.

const char* kSenderColumnName = "sender"

Definition at line 1491 of file nsMsgDatabase.cpp.

const char* kStatusOffsetColumnName = "statusOfset"

Definition at line 1500 of file nsMsgDatabase.cpp.

const char* kSubjectColumnName = "subject"

Definition at line 1490 of file nsMsgDatabase.cpp.

const nsMsgKey kTableKeyForThreadOne = 0xfffffffe [static]

Definition at line 102 of file nsMsgDatabase.cpp.

const char* kThreadChildrenColumnName = "children"

Definition at line 1507 of file nsMsgDatabase.cpp.

const char* kThreadFlagsColumnName = "threadFlags"

Definition at line 1505 of file nsMsgDatabase.cpp.

const char* kThreadHdrsScope = "ns:msg:db:row:scope:threads:all"

Definition at line 1488 of file nsMsgDatabase.cpp.

const char* kThreadIdColumnName = "threadId"

Definition at line 1506 of file nsMsgDatabase.cpp.

const char* kThreadNewestMsgDateColumnName = "threadNewestMsgDate"

Definition at line 1513 of file nsMsgDatabase.cpp.

const char* kThreadParentColumnName = "threadParent"

Definition at line 1511 of file nsMsgDatabase.cpp.

const char* kThreadRootColumnName = "threadRoot"

Definition at line 1512 of file nsMsgDatabase.cpp.

const char* kThreadSubjectColumnName = "threadSubject"

Definition at line 1509 of file nsMsgDatabase.cpp.

const char* kThreadTableKind = "ns:msg:db:table:kind:thread"

Definition at line 1487 of file nsMsgDatabase.cpp.

const char* kThreadUnreadChildrenColumnName = "unreadChildren"

Definition at line 1508 of file nsMsgDatabase.cpp.