Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsImapProtocol.cpp File Reference
#include "msgCore.h"
#include "nsMsgUtils.h"
#include "nsIServiceManager.h"
#include "nsICharsetConverterManager.h"
#include "nsIStringBundle.h"
#include "nsMsgImapCID.h"
#include "nsIEventQueueService.h"
#include "nsISupportsObsolete.h"
#include "nsImapCore.h"
#include "nsImapProtocol.h"
#include "nsIMsgMailNewsUrl.h"
#include "nscore.h"
#include "nsIMAPHostSessionList.h"
#include "nsIMAPBodyShell.h"
#include "nsImapMailFolder.h"
#include "nsImapServerResponseParser.h"
#include "nspr.h"
#include "plbase64.h"
#include "nsIImapService.h"
#include "nsISocketTransportService.h"
#include "nsIStreamListenerTee.h"
#include "nsNetUtil.h"
#include "nsXPIDLString.h"
#include "nsReadableUtils.h"
#include "nsIPipe.h"
#include "nsIMsgFolder.h"
#include "nsMsgMessageFlags.h"
#include "nsImapStringBundle.h"
#include "nsICopyMsgStreamListener.h"
#include "nsTextFormatter.h"
#include "nsAutoLock.h"
#include "nsIMsgHdr.h"
#include "nsMsgI18N.h"
#include "nsEscape.h"
#include "nsICacheEntryDescriptor.h"
#include "nsICacheSession.h"
#include "nsIPrompt.h"
#include "nsIDocShellLoadInfo.h"
#include "nsIDOMWindowInternal.h"
#include "nsIMessengerWindowService.h"
#include "nsIWindowMediator.h"
#include "nsIWindowWatcher.h"
#include "nsCOMPtr.h"
#include "nsMimeTypes.h"
#include "nsIStreamListener.h"
#include "nsIMsgIncomingServer.h"
#include "nsIImapIncomingServer.h"
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"
#include "nsIPrefLocalizedString.h"
#include "nsImapUtils.h"
#include "nsIProxyObjectManager.h"
#include "nsIStreamConverterService.h"
#include "nsIProxyInfo.h"
#include "nsEventQueueUtils.h"
#include "nsISSLSocketControl.h"

Go to the source code of this file.

Classes

class  nsImapCacheStreamListener

Defines

#define DOING_PSEUDO_MAILBOXES
#define ONE_SECOND   ((PRUint32)1000)
#define OUTPUT_BUFFER_SIZE   (4096*2)
#define IMAP_ENV_HEADERS   "From To Cc Subject Date Message-ID "
#define IMAP_DB_HEADERS   "Priority X-Priority References Newsgroups In-Reply-To Content-Type"
#define IMAP_ENV_AND_DB_HEADERS   IMAP_ENV_HEADERS IMAP_DB_HEADERS
#define IS_SUBSCRIPTION_RELATED_ACTION(action)

Functions

static NS_DEFINE_CID (kSocketTransportServiceCID, NS_SOCKETTRANSPORTSERVICE_CID)
static NS_DEFINE_CID (kEventQueueServiceCID, NS_EVENTQUEUESERVICE_CID)
static NS_DEFINE_CID (kCharsetConverterManagerCID, NS_ICHARSETCONVERTERMANAGER_CID)
static NS_DEFINE_CID (kProxyObjectManagerCID, NS_PROXYEVENT_MANAGER_CID)
static NS_DEFINE_CID (kStreamListenerTeeCID, NS_STREAMLISTENERTEE_CID)
static void SetSecurityCallbacksFromChannel (nsISocketTransport *aTrans, nsIChannel *aChannel)

Variables

PRLogModuleInfoIMAP
static const PRIntervalTime kImapSleepTime = PR_MillisecondsToInterval(1000)
static PRInt32 gPromoteNoopToCheckCount = 0
static const PRUint32 kFlagChangesBeforeCheck = 10
static const PRInt32 kMaxSecondsBeforeCheck = 600
static const PRInt32 kNumHdrsToXfer = 10
static const PRInt32 kInitLineHdrCacheSize = 512
static
NS_INTERFACE_MAP_END_THREADSAFE
PRInt32 
gTooFastTime = 2
static PRInt32 gIdealTime = 4
static PRInt32 gChunkAddSize = 2048
static PRInt32 gChunkSize = 10240
static PRInt32 gChunkThreshold = 10240 + 4096
static PRBool gFetchByChunks = PR_TRUE
static PRInt32 gMaxChunkSize = 40960
static PRBool gInitialized = PR_FALSE
static PRBool gHideUnusedNamespaces = PR_TRUE
static PRBool gHideOtherUsersFromList = PR_FALSE
static PRBool gUseEnvelopeCmd = PR_FALSE
static PRBool gUseLiteralPlus = PR_TRUE
static PRBool gExpungeAfterDelete = PR_FALSE
static PRBool gCheckDeletedBeforeExpunge = PR_FALSE
static PRInt32 gResponseTimeout = 60
static nsCStringArray gCustomDBHeaders

Define Documentation

Definition at line 40 of file nsImapProtocol.cpp.

#define IMAP_DB_HEADERS   "Priority X-Priority References Newsgroups In-Reply-To Content-Type"

Definition at line 123 of file nsImapProtocol.cpp.

Definition at line 124 of file nsImapProtocol.cpp.

#define IMAP_ENV_HEADERS   "From To Cc Subject Date Message-ID "

Definition at line 122 of file nsImapProtocol.cpp.

#define ONE_SECOND   ((PRUint32)1000)

Definition at line 112 of file nsImapProtocol.cpp.

#define OUTPUT_BUFFER_SIZE   (4096*2)

Definition at line 120 of file nsImapProtocol.cpp.


Function Documentation

static NS_DEFINE_CID ( kSocketTransportServiceCID  ,
NS_SOCKETTRANSPORTSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kCharsetConverterManagerCID  ,
NS_ICHARSETCONVERTERMANAGER_CID   
) [static]
static NS_DEFINE_CID ( kProxyObjectManagerCID  ,
NS_PROXYEVENT_MANAGER_CID   
) [static]
static NS_DEFINE_CID ( kStreamListenerTeeCID  ,
NS_STREAMLISTENERTEE_CID   
) [static]
static void SetSecurityCallbacksFromChannel ( nsISocketTransport aTrans,
nsIChannel aChannel 
) [static]

Definition at line 669 of file nsImapProtocol.cpp.

{
  nsCOMPtr<nsIInterfaceRequestor> callbacks;
  aChannel->GetNotificationCallbacks(getter_AddRefs(callbacks));

  nsCOMPtr<nsILoadGroup> loadGroup;
  aChannel->GetLoadGroup(getter_AddRefs(loadGroup));

  nsCOMPtr<nsIInterfaceRequestor> securityCallbacks;
  NS_NewNotificationCallbacksAggregation(callbacks, loadGroup,
                                         getter_AddRefs(securityCallbacks));
  if (securityCallbacks)
    aTrans->SetSecurityCallbacks(securityCallbacks);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 323 of file nsImapProtocol.cpp.

PRInt32 gChunkAddSize = 2048 [static]

Definition at line 312 of file nsImapProtocol.cpp.

PRInt32 gChunkSize = 10240 [static]

Definition at line 313 of file nsImapProtocol.cpp.

PRInt32 gChunkThreshold = 10240 + 4096 [static]

Definition at line 314 of file nsImapProtocol.cpp.

nsCStringArray gCustomDBHeaders [static]

Definition at line 325 of file nsImapProtocol.cpp.

Definition at line 322 of file nsImapProtocol.cpp.

Definition at line 315 of file nsImapProtocol.cpp.

Definition at line 319 of file nsImapProtocol.cpp.

Definition at line 318 of file nsImapProtocol.cpp.

PRInt32 gIdealTime = 4 [static]

Definition at line 311 of file nsImapProtocol.cpp.

Definition at line 317 of file nsImapProtocol.cpp.

PRInt32 gMaxChunkSize = 40960 [static]

Definition at line 316 of file nsImapProtocol.cpp.

Definition at line 126 of file nsImapProtocol.cpp.

PRInt32 gResponseTimeout = 60 [static]

Definition at line 324 of file nsImapProtocol.cpp.

Definition at line 310 of file nsImapProtocol.cpp.

Definition at line 320 of file nsImapProtocol.cpp.

Definition at line 321 of file nsImapProtocol.cpp.

Definition at line 96 of file nsImapProtocol.cpp.

Definition at line 127 of file nsImapProtocol.cpp.

const PRIntervalTime kImapSleepTime = PR_MillisecondsToInterval(1000) [static]

Definition at line 125 of file nsImapProtocol.cpp.

Definition at line 158 of file nsImapProtocol.cpp.

Definition at line 128 of file nsImapProtocol.cpp.

const PRInt32 kNumHdrsToXfer = 10 [static]

Definition at line 132 of file nsImapProtocol.cpp.