Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Private Attributes | Friends
NS_MSG_BASE Protocol Reference

#include <nsAdapterEnumerator.h>

Inheritance diagram for NS_MSG_BASE:
Inheritance graph
[legend]
Collaboration diagram for NS_MSG_BASE:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS NS_IMETHOD HasMoreElements (PRBool *aResult)
NS_IMETHOD GetNext (nsISupports **aResult)
 nsAdapterEnumerator (nsIEnumerator *aEnum)
virtual ~nsAdapterEnumerator ()
NS_DECL_ISUPPORTS
NS_DECL_NSIURLLISTENER 
nsImapMoveCoalescer (nsIMsgFolder *sourceFolder, nsIMsgWindow *msgWindow)
virtual ~nsImapMoveCoalescer ()
nsresult AddMove (nsIMsgFolder *folder, nsMsgKey key)
nsresult PlaybackMoves (PRBool doNewMailNotification=PR_FALSE)
nsMsgKeyArrayGetKeyBucket (PRInt32 keyArrayIndex)
nsIMsgWindowGetMsgWindow ()
PRBool HasPendingMoves ()
virtual ~nsLocalFolderSummarySpec ()
 nsLocalFolderSummarySpec ()
 nsLocalFolderSummarySpec (const char *folderPath, PRBool create=PR_FALSE)
 nsLocalFolderSummarySpec (const nsFileSpec &inFolderPath)
 nsLocalFolderSummarySpec (const nsFilePath &inFolderPath, PRBool create=PR_FALSE)
void SetFolderName (const char *folderPath)
 nsMsgDBFolder (void)
virtual ~nsMsgDBFolder (void)
NS_DECL_ISUPPORTS_INHERITED
NS_DECL_NSIMSGFOLDER
NS_DECL_NSICOLLECTION
NS_DECL_NSISERIALIZABLE
NS_DECL_NSIDBCHANGELISTENER
NS_DECL_NSIURLLISTENER
NS_IMETHOD 
WriteToFolderCacheElem (nsIMsgFolderCacheElement *element)
NS_IMETHOD ReadFromFolderCacheElem (nsIMsgFolderCacheElement *element)
NS_IMETHOD Init (const char *aURI)
PRInt32 GetNumPendingUnread ()
PRInt32 GetNumPendingTotalMessages ()
void ChangeNumPendingUnread (PRInt32 delta)
void ChangeNumPendingTotalMessages (PRInt32 delta)
NS_IMETHOD MatchName (nsString *name, PRBool *matches)
nsresult CreateDirectoryForFolder (nsFileSpec &path)
nsresult GetMsgPreviewTextFromStream (nsIMsgDBHdr *msgHdr, nsIInputStream *stream)
virtual void InitializeSibling ()
virtual PRBool IsIMAPGroupRecord ()
virtual nsIMAPGroupRecordGetIMAPGroupRecord ()
virtual ~nsMsgGroupRecord ()
nsMsgGroupRecordFindDescendant (const char *name)
nsMsgGroupRecordGetParent ()
nsMsgGroupRecordGetChildren ()
nsMsgGroupRecordGetSibling ()
nsMsgGroupRecordGetSiblingOrAncestorSibling ()
nsMsgGroupRecordGetNextAlphabetic ()
nsMsgGroupRecordGetNextAlphabeticNoCategories ()
const char * GetPartName ()
char * GetFullName ()
const char * GetPrettyName ()
int SetPrettyName (const char *prettyname)
PRInt64 GetAddTime ()
virtual PRBool IsCategory ()
virtual PRBool IsCategoryContainer ()
virtual int SetIsCategoryContainer (PRBool value)
nsMsgGroupRecordGetCategoryContainer ()
nsresult IsVirtual (PRBool *retval)
nsresult SetIsVirtual (PRBool value)
virtual PRBool IsGroup ()
int SetIsGroup (PRBool value)
PRBool IsDescendentsLoaded ()
int SetIsDescendentsLoaded (PRBool value)
PRBool IsExpanded ()
int SetIsExpanded (PRBool value)
PRBool IsHTMLOKGroup ()
int SetIsHTMLOKGroup (PRBool value)
PRBool IsHTMLOKTree ()
int SetIsHTMLOKTree (PRBool value)
PRBool NeedsExtraInfo ()
int SetNeedsExtraInfo (PRBool value)
PRBool DoesNotExistOnServer ()
int SetDoesNotExistOnServer (PRBool value)
PRInt32 GetUniqueID ()
PRInt32 GetFileOffset ()
int SetFileOffset (PRInt32 value)
PRInt32 GetNumKids ()
char * GetSaveString ()
PRBool IsDirty ()
PRInt32 GetDepth ()
virtual char GetHierarchySeparator ()
 nsMsgIdentity ()
virtual ~nsMsgIdentity ()
 nsMsgIncomingServer ()
virtual ~nsMsgIncomingServer ()
 nsMsgKeyArray ()
nsMsgKey operator[] (PRUint32 nIndex) const
nsMsgKey GetKeyFromIndex (PRUint32 nIndex)
nsMsgKey GetAt (PRUint32 nIndex) const
void SetAt (PRUint32 nIndex, nsMsgKey key)
void SetAtGrow (PRUint32 nIndex, nsMsgKey key)
void InsertAt (PRUint32 nIndex, nsMsgKey key, int nCount=1)
void InsertAt (PRUint32 nIndex, const nsMsgKeyArray *idArray)
PRUint32 Add (nsMsgKey key)
PRUint32 Add (nsMsgKey *elementPtr, PRUint32 numElements)
void CopyArray (nsMsgKeyArray *oldA)
void CopyArray (nsMsgKeyArray &oldA)
nsMsgViewIndex FindIndex (nsMsgKey key, PRUint32 startIndex=0)
nsMsgKeyGetArray (void)
void SetArray (nsMsgKey *pData, int numElements, int numAllocated)
 ~nsMsgKeySet ()
PRInt32 FirstNonMember ()
nsresult Output (char **outputStr)
PRBool IsMember (PRInt32 art)
int Add (PRInt32 art)
int Remove (PRInt32 art)
int AddRange (PRInt32 first, PRInt32 last)
PRInt32 CountMissingInRange (PRInt32 start, PRInt32 end)
int FirstMissingRange (PRInt32 min, PRInt32 max, PRInt32 *first, PRInt32 *last)
int LastMissingRange (PRInt32 min, PRInt32 max, PRInt32 *first, PRInt32 *last)
PRInt32 GetLastMember ()
PRInt32 GetFirstMember ()
void SetLastMember (PRInt32 highWaterMark)
PRInt32 getLength ()
nsresult ToMsgKeyArray (nsMsgKeyArray **aArray)
 Return a copy of this as an nsMsgKeyArray, which is much easier for callers to manipulate.
 nsByteArray ()
virtual ~nsByteArray ()
PRUint32 GetSize ()
PRUint32 GetBufferPos ()
nsresult GrowBuffer (PRUint32 desired_size, PRUint32 quantum=1024)
nsresult AppendString (const char *string)
nsresult AppendBuffer (const char *buffer, PRUint32 length)
void ResetWritePos ()
char * GetBuffer ()
virtual PRInt32 HandleLine (char *line, PRUint32 line_length)=0
 nsMsgLineBuffer (nsMsgLineBufferHandler *handler, PRBool convertNewlinesP)
virtual ~nsMsgLineBuffer ()
PRInt32 BufferInput (const char *net_buffer, PRInt32 net_buffer_size)
PRUint32 GetBufferPos ()
virtual PRInt32 HandleLine (char *line, PRUint32 line_length)
virtual PRInt32 FlushLastLine ()
 nsMsgLineStreamBuffer (PRUint32 aBufferSize, PRBool aAllocateNewLines, PRBool aEatCRLFs=PR_TRUE, char aLineToken= '\n')
virtual ~nsMsgLineStreamBuffer ()
char * ReadNextLine (nsIInputStream *aInputStream, PRUint32 &anumBytesInLine, PRBool &aPauseForMoreData, nsresult *rv=nsnull, PRBool addLineTerminator=PR_FALSE)
nsresult GrowBuffer (PRInt32 desiredSize)
void ClearBuffer ()
PRBool NextLineAvailable ()
 nsMsgMailNewsUrl ()
 nsMsgProtocol (nsIURI *aURL)
virtual ~nsMsgProtocol ()
NS_DECL_ISUPPORTS
NS_DECL_NSICHANNEL
NS_DECL_NSIREQUEST
NS_DECL_NSISTREAMLISTENER
NS_DECL_NSIREQUESTOBSERVER
virtual
NS_DECL_NSITRANSPORTEVENTSINK
nsresult 
LoadUrl (nsIURI *aURL, nsISupports *aConsumer=nsnull)
virtual nsresult SetUrl (nsIURI *aURL)
virtual PRBool TestFlag (PRUint32 flag)
virtual void SetFlag (PRUint32 flag)
virtual void ClearFlag (PRUint32 flag)
NS_DECL_ISUPPORTS_INHERITED
NS_IMETHOD 
Cancel (nsresult status)
 nsMsgAsyncWriteProtocol (nsIURI *aURL)
virtual ~nsMsgAsyncWriteProtocol ()
virtual nsresult PostMessage (nsIURI *url, nsIFileSpec *fileSpec)
virtual nsresult SetupTransportState ()
virtual PRInt32 SendData (nsIURI *aURL, const char *dataBuffer, PRBool aSuppressLogging=PR_FALSE)
nsresult ProcessIncomingPostData (nsIInputStream *inStr, PRUint32 count)
nsresult UnblockPostReader ()
nsresult UpdateSuspendedReadBytes (PRUint32 aNewBytes, PRBool aAddToPostPeriodByteCount)
nsresult PostDataFinished ()
nsresult SuspendPostFileRead ()
nsresult ResumePostFileRead ()
nsresult UpdateSuspendedReadBytes (PRUint32 aNewBytes)
void UpdateProgress (PRUint32 aNewBytes)
 nsNewsSummarySpec ()
 nsNewsSummarySpec (const char *folderPath)
 nsNewsSummarySpec (const nsFileSpec &inFolderPath)
 nsNewsSummarySpec (const nsFilePath &inFolderPath)
 ~nsNewsSummarySpec ()
void SetFolderName (const char *folderPath)
 nsUInt32Array ()
virtual ~nsUInt32Array ()
PRUint32 GetSize () const
PRBool SetSize (PRUint32 nNewSize, PRBool AdjustGrowth=PR_FALSE, PRUint32 nGrowBy=0)
PRBool AllocateSpace (PRUint32 nNewSize)
PRUint32ElementAt (PRUint32 nIndex)
PRUint32 GetAt (PRUint32 nIndex) const
PRUint32GetData ()
void SetAt (PRUint32 nIndex, PRUint32 newElement)
PRUint32 IndexOf (PRUint32 element)
PRUint32 IndexOfSorted (PRUint32 element)
PRUint32 Add (PRUint32 newElement)
PRUint32 Add (PRUint32 *elementPtr, PRUint32 numElements)
void InsertAt (PRUint32 nIndex, PRUint32 newElement, PRUint32 nCount=1)
void InsertAt (PRUint32 nStartIndex, const nsUInt32Array *pNewArray)
void RemoveAll ()
void RemoveAt (PRUint32 nIndex, PRUint32 nCount=1)
void SetAtGrow (PRUint32 nIndex, PRUint32 newElement)
PRBool RemoveElement (PRUint32 element)
void QuickSort (int(*PR_CALLBACK compare)(const void *elem1, const void *elem2, void *)=NULL)
PRUint32 operator[] (PRUint32 nIndex) const
PRUint32operator[] (PRUint32 nIndex)
PRUint32CloneData ()
void CopyArray (nsUInt32Array *oldA)
void CopyArray (nsUInt32Array &oldA)
 nsUint8Array ()
PRInt32 GetSize () const
PRInt32 GetUpperBound () const
void SetSize (PRInt32 nNewSize, PRInt32 nGrowBy=-1)
void AllocateSpace (PRUint32 nNewSize)
void FreeExtra ()
void RemoveAll ()
PRUint8 GetAt (PRInt32 nIndex) const
void SetAt (PRInt32 nIndex, PRUint8 newElement)
PRUint8ElementAt (PRInt32 nIndex)
void SetAtGrow (PRInt32 nIndex, PRUint8 newElement)
PRInt32 Add (PRUint8 newElement)
PRUint8 operator[] (PRInt32 nIndex) const
PRUint8operator[] (PRInt32 nIndex)
nsresult InsertAt (PRInt32 nIndex, PRUint8 newElement, PRInt32 nCount=1)
void RemoveAt (PRInt32 nIndex, PRInt32 nCount=1)
nsresult InsertAt (PRInt32 nStartIndex, nsUint8Array *pNewArray)
void CopyArray (nsUint8Array &aSrcArray)
PRUint8GetArray (void)
 ~nsUint8Array ()
void doTransaction ()
 Executes the transaction.
void undoTransaction ()
 Restores the state to what it was before the transaction was executed.
void redoTransaction ()
 Executes the transaction again.
boolean merge (in nsITransaction aTransaction)
 Attempts to merge a transaction into "this" transaction.
void onDataAvailable (in nsIRequest aRequest, in nsISupports aContext, in nsIInputStream aInputStream, in unsigned long aOffset, in unsigned long aCount)
 Called when the next chunk of data (corresponding to the request) may be read without blocking the calling thread.
void onStartRequest (in nsIRequest aRequest, in nsISupports aContext)
 Called to signify the beginning of an asynchronous request.
void onStopRequest (in nsIRequest aRequest, in nsISupports aContext, in nsresult aStatusCode)
 Called to signify the end of an asynchronous request.
nsIInputStream open ()
 Synchronously open the channel.
void asyncOpen (in nsIStreamListener aListener, in nsISupports aContext)
 Asynchronously open this channel.
boolean isPending ()
 Indicates whether the request is pending.
void cancel (in nsresult aStatus)
 Cancels the current request.
void suspend ()
 Suspends the current request.
void resume ()
 Resumes the current request.
void onTransportStatus (in nsITransport aTransport, in nsresult aStatus, in unsigned long long aProgress, in unsigned long long aProgressMax)
 Transport status notification.
void RegisterListener (in nsIUrlListener aUrlListener)
void UnRegisterListener (in nsIUrlListener aUrlListener)
void SetUrlState (in boolean runningUrl, in nsresult aStatusCode)
void GetUrlState (out boolean runningUrl)
void cacheCacheEntry (in nsICacheEntryDescriptor cacheEntry)
void removeCacheEntry (in nsICacheEntryDescriptor cacheEntry)
boolean IsUrlType (in unsigned long type)
nsIStreamListener getSaveAsListener (in boolean addDummyEnvelope, in nsIFileSpec aFileSpec)
AUTF8String getCommonBaseSpec (in nsIURI aURIToCompare)
 This method takes a uri and compares the two.
AUTF8String getRelativeSpec (in nsIURI aURIToCompare)
 This method takes a uri and returns a substring of this if it can be made relative to the uri passed in.
boolean equals (in nsIURI other)
 URI equivalence test (not a strict string comparison).
boolean schemeIs (in string scheme)
 An optimization to do scheme checks without requiring the users of nsIURI to GetScheme, thereby saving extra allocating and freeing.
nsIURI clone ()
 Clones the current URI.
AUTF8String resolve (in AUTF8String relativePath)
 This method resolves a relative string into an absolute URI string, using this URI as the base.
void OnUserOrHostNameChanged (in string oldName, in string newName)
string getPasswordWithUI (in wstring aPromptString, in wstring aPromptTitle, in nsIMsgWindow aMsgWindow, out boolean okayValue)
void forgetPassword ()
void storePassword ()
 logon succeeded - persist password, if user chooses.
void forgetSessionPassword ()
nsIMsgFilterList getFilterList (in nsIMsgWindow aMsgWindow)
void setFilterList (in nsIMsgFilterList aFilterList)
void SetDefaultLocalPath (in nsIFileSpec aDefaultLocalPath)
void PerformBiff (in nsIMsgWindow aMsgWindow)
void getNewMessages (in nsIMsgFolder aFolder, in nsIMsgWindow aMsgWindow, in nsIUrlListener aUrlListener)
void performExpand (in nsIMsgWindow aMsgWindow)
void WriteToFolderCache (in nsIMsgFolderCache folderCache)
void CloseCachedConnections ()
void shutdown ()
boolean getBoolValue (in string attr)
void setBoolValue (in string attr, in boolean value)
string getCharValue (in string attr)
void setCharValue (in string attr, in string value)
wstring getUnicharValue (in string attr)
void setUnicharValue (in string attr, in wstring value)
long getIntValue (in string attr)
void setIntValue (in string attr, in long value)
nsIFileSpec getFileValue (in string attr)
void setFileValue (in string attr, in nsIFileSpec value)
void clearAllValues ()
 this is really dangerous.
void removeFiles ()
 this is also very dangerous.
wstring toString ()
void displayOfflineMsg (in nsIMsgWindow aWindow)
boolean equals (in nsIMsgIncomingServer server)
wstring generatePrettyNameForMigration ()
wstring getUnicharAttribute (in string name)
 these generic getter / setters, useful for extending mailnews note, these attributes persist across sessions
void setUnicharAttribute (in string name, in wstring value)
string getCharAttribute (in string name)
void setCharAttribute (in string name, in string value)
boolean getBoolAttribute (in string name)
void setBoolAttribute (in string name, in boolean value)
long getIntAttribute (in string name)
void setIntAttribute (in string name, in long value)
void configureTemporaryFilters (in nsIMsgFilterList filterList)
 for mail, this configures both the MDN filter, and the server-side spam filter filters, if needed.
void clearTemporaryReturnReceiptsFilter ()
 If Sent folder pref is changed we need to clear the temporary return receipt filter so that the new return receipt filter can be recreated (by ConfigureTemporaryReturnReceiptsFilter()).
nsIMsgFolder getMsgFolderFromURI (in nsIMsgFolder aFolderResource, in string aURI)
boolean isNewHdrDuplicate (in nsIMsgDBHdr aNewHdr)
void clearAllValues ()
 this is really dangerous.
void copy (in nsIMsgIdentity identity)
wstring getUnicharAttribute (in string name)
 these generic getter / setters, useful for extending mailnews note, these attributes persist across sessions
void setUnicharAttribute (in string name, in wstring value)
string getCharAttribute (in string name)
void setCharAttribute (in string name, in string value)
boolean getBoolAttribute (in string name)
void setBoolAttribute (in string name, in boolean value)
long getIntAttribute (in string name)
void setIntAttribute (in string name, in long value)
wstring toString ()
NS_DECL_ISUPPORTS NS_IMETHOD EqualsNode (nsIRDFNode *aNode, PRBool *aResult)
boolean EqualsNode (in nsIRDFNode aNode)
void Init (in string uri)
 This method is called by the nsIRDFService after constructing a resource object to initialize it's URI.
NS_IMETHOD GetValue (char **aURI)
NS_IMETHOD GetValueUTF8 (nsACString &aResult)
NS_IMETHOD GetValueConst (const char **aURI)
void GetValueConst ([shared] out string aConstValue)
 An unscriptable version used to avoid a string copy.
NS_IMETHOD EqualsString (const char *aURI, PRBool *aResult)
boolean EqualsString (in string aURI)
 Determine if the resource has the given URI.
NS_IMETHOD GetDelegate (const char *aKey, REFNSIID aIID, void **aResult)
void GetDelegate (in string aKey, in nsIIDRef aIID,[iid_is(aIID), retval] out nsQIResult aResult)
 Retrieve the "delegate" object for this resource.
NS_IMETHOD ReleaseDelegate (const char *aKey)
void ReleaseDelegate (in string aKey)
 Force a delegate to be "unbound" from the resource.
nsISimpleEnumerator getMessages (in nsIMsgWindow aMsgWindow)
void startFolderLoading ()
void endFolderLoading ()
void updateFolder (in nsIMsgWindow aWindow)
nsIMsgFilterList getFilterList (in nsIMsgWindow msgWindow)
 function to get the filter list on folder's server (or in the case of news, the filter list for this newsgroup)'
void setFilterList (in nsIMsgFilterList filterList)
void ForceDBClosed ()
void Delete ()
void deleteSubFolders (in nsISupportsArray folders, in nsIMsgWindow msgWindow)
void propagateDelete (in nsIMsgFolder folder, in boolean deleteStorage, in nsIMsgWindow msgWindow)
void recursiveDelete (in boolean deleteStorage, in nsIMsgWindow msgWindow)
void createSubfolder (in wstring folderName, in nsIMsgWindow msgWindow)
nsIMsgFolder addSubfolder (in AString folderName)
void createStorageIfMissing (in nsIUrlListener urlListener)
void compact (in nsIUrlListener aListener, in nsIMsgWindow aMsgWindow)
void compactAll (in nsIUrlListener aListener, in nsIMsgWindow aMsgWindow, in nsISupportsArray aFolderArray, in boolean aCompactOfflineAlso, in nsISupportsArray aOfflineFolderArray)
void compactAllOfflineStores (in nsIMsgWindow aMsgWindow, in nsISupportsArray aOfflineFolderArray)
void emptyTrash (in nsIMsgWindow aMsgWindow, in nsIUrlListener aListener)
void rename (in wstring name, in nsIMsgWindow msgWindow)
 change the name of the folder
void renameSubFolders (in nsIMsgWindow msgWindow, in nsIMsgFolder oldFolder)
boolean containsChildNamed (in wstring name)
 looks in immediate children of this folder for the given name
boolean isAncestorOf (in nsIMsgFolder folder)
wstring generateUniqueSubfolderName (in wstring prefix, in nsIMsgFolder otherFolder)
void updateSummaryTotals (in boolean force)
void summaryChanged ()
long getNumUnread (in boolean deep)
 get the total number of unread messages in this folder, or in all subfolders
long getTotalMessages (in boolean deep)
 get the total number of messages in this folder, or in all subfolders
void clearNewMessages ()
 clear new status flag of all of the new messages
void clearRequiresCleanup ()
void setFlag (in unsigned long flag)
void clearFlag (in unsigned long flag)
boolean getFlag (in unsigned long flag)
void setPrefFlag ()
void toggleFlag (in unsigned long flag)
void onFlagChange (in unsigned long flag)
nsIMsgFolder getFoldersWithFlag (in unsigned long flags, in unsigned long resultsize, out unsigned long numFolders)
nsISupportsArray getAllFoldersWithFlag (in unsigned long aFlag)
void getExpansionArray (in nsISupportsArray expansionArray)
string getUriForMsg (in nsIMsgDBHdr msgHdr)
void deleteMessages (in nsISupportsArray messages, in nsIMsgWindow msgWindow, in boolean deleteStorage, in boolean isMove, in nsIMsgCopyServiceListener listener, in boolean allowUndo)
void copyMessages (in nsIMsgFolder srcFolder, in nsISupportsArray messages, in boolean isMove, in nsIMsgWindow msgWindow, in nsIMsgCopyServiceListener listener, in boolean isFolder, in boolean allowUndo)
void copyFolder (in nsIMsgFolder srcFolder, in boolean isMoveFolder, in nsIMsgWindow msgWindow, in nsIMsgCopyServiceListener listener)
void copyFileMessage (in nsIFileSpec fileSpec, in nsIMsgDBHdr msgToReplace, in boolean isDraft, in unsigned long newMsgFlags, in nsIMsgWindow msgWindow, in nsIMsgCopyServiceListener listener)
void acquireSemaphore (in nsISupports semHolder)
void releaseSemaphore (in nsISupports semHolder)
boolean testSemaphore (in nsISupports semHolder)
void getNewMessages (in nsIMsgWindow aWindow, in nsIUrlListener aListener)
void writeToFolderCache (in nsIMsgFolderCache folderCache, in boolean deep)
 write out summary data for this folder to the given folder cache (i.e.
long getNumNewMessages (in boolean deep)
 the number of new messages since this folder was last visited
void setNumNewMessages (in long numNewMessages)
string generateMessageURI (in nsMsgKey msgKey)
void addMessageDispositionState (in nsIMsgDBHdr aMessage, in nsMsgDispositionState aDispositionFlag)
void markMessagesRead (in nsISupportsArray messages, in boolean markRead)
void markAllMessagesRead ()
void markMessagesFlagged (in nsISupportsArray messages, in boolean markFlagged)
void markThreadRead (in nsIMsgThread thread)
void setLabelForMessages (in nsISupportsArray messages, in nsMsgLabelValue label)
nsIMsgDatabase getMsgDatabase (in nsIMsgWindow msgWindow)
void setMsgDatabase (in nsIMsgDatabase msgDatabase)
nsIMsgDatabase getDBFolderInfoAndDB (out nsIDBFolderInfo folderInfo)
nsIMsgDBHdr GetMessageHeader (in nsMsgKey msgKey)
boolean shouldStoreMsgOffline (in nsMsgKey msgKey)
boolean hasMsgOffline (in nsMsgKey msgKey)
nsIInputStream getOfflineFileStream (in nsMsgKey msgKey, out PRUint32 offset, out PRUint32 size)
void DownloadMessagesForOffline (in nsISupportsArray messages, in nsIMsgWindow window)
nsIMsgFolder getChildWithURI (in string uri, in boolean deep, in boolean caseInsensitive)
void downloadAllForOffline (in nsIUrlListener listener, in nsIMsgWindow window)
void enableNotifications (in long notificationType, in boolean enable, in boolean dbBatching)
boolean isCommandEnabled (in string command)
boolean matchOrChangeFilterDestination (in nsIMsgFolder folder, in boolean caseInsensitive)
boolean confirmFolderDeletionForFilter (in nsIMsgWindow msgWindow)
void alertFilterChanged (in nsIMsgWindow msgWindow)
void throwAlertMsg (in string msgName, in nsIMsgWindow msgWindow)
wstring getStringWithFolderNameFromBundle (in string msgName)
void notifyCompactCompleted ()
long compareSortKeys (in nsIMsgFolder msgFolder)
void getSortKey (out octet_ptr key, out unsigned long length)
boolean callFilterPlugins (in nsIMsgWindow aMsgWindow)
string getStringProperty (in string propertyName)
void setStringProperty (in string propertyName, in string propertyValue)
nsISupports getChildNamed (in wstring name)
nsIEnumerator GetSubFolders ()
void AddFolderListener (in nsIFolderListener listener)
void RemoveFolderListener (in nsIFolderListener listener)
nsIMsgFolder FindSubFolder (in ACString escapedSubFolderName)
void NotifyPropertyChanged (in nsIAtom property, in string oldValue, in string newValue)
void NotifyIntPropertyChanged (in nsIAtom property, in long oldValue, in long newValue)
void NotifyBoolPropertyChanged (in nsIAtom property, in boolean oldValue, in boolean newValue)
void NotifyPropertyFlagChanged (in nsIMsgDBHdr item, in nsIAtom property, in unsigned long oldValue, in unsigned long newValue)
void NotifyUnicharPropertyChanged (in nsIAtom property, in wstring oldValue, in wstring newValue)
void NotifyItemAdded (in nsISupports item)
void NotifyItemRemoved (in nsISupports item)
void NotifyFolderEvent (in nsIAtom event)
void ListDescendents (in nsISupportsArray descendents)
void Shutdown (in boolean shutdownChildren)
void setInVFEditSearchScope (in boolean aSearchThisFolder, in boolean aSetOnSubFolders)
void copyDataToOutputStreamForAppend (in nsIInputStream aIStream, in long aLength, in nsIOutputStream outputStream)
void copyDataDone ()
void setJunkScoreForMessages (in nsISupportsArray aMessages, in string aJunkScore)
void applyRetentionSettings ()
void fetchMsgPreviewText ([array, size_is(aNumKeys)] in nsMsgKey aKeysToFetch, in unsigned long aNumKeys, in boolean aLocalOnly, in nsIUrlListener aUrlListener, out boolean aAsyncResults)
 Get the beginning of the message bodies for the passed in keys and store them in the msg hdr property "preview".
void addKeywordsToMessages (in nsISupportsArray aMessages, in string aKeywords)
void removeKeywordsFromMessages (in nsISupportsArray aMessages, in string aKeywords)
ACString getMsgTextFromStream (in nsIMsgDBHdr aMsgHdr, in nsIInputStream aStream, in long aBytesToRead, in long aMaxOutputLen, in boolean aCompressQuotes)
 Extract the message preview text from aStream, storing it as a string property on aMsgHdr.
PRUint32 Count ()
nsISupports GetElementAt (in PRUint32 index)
void QueryElementAt (in PRUint32 index, in nsIIDRef uuid,[iid_is(uuid), retval] out nsQIResult result)
void SetElementAt (in PRUint32 index, in nsISupports item)
void AppendElement (in nsISupports item)
void RemoveElement (in nsISupports item)
nsIEnumerator Enumerate ()
void Clear ()
void read (in nsIObjectInputStream aInputStream)
 Initialize the object implementing nsISerializable, which must have been freshly constructed via CreateInstance.
void write (in nsIObjectOutputStream aOutputStream)
 Serialize the object implementing nsISerializable to aOutputStream, by writing each data member that must be recovered later to reconstitute a working replica of this object, in a canonical member and byte order, to aOutputStream.
void onHdrChange (in nsIMsgDBHdr aHdrChanged, in unsigned long aOldFlags, in unsigned long aNewFlags, in nsIDBChangeListener aInstigator)
void onHdrDeleted (in nsIMsgDBHdr aHdrChanged, in nsMsgKey aParentKey, in long aFlags, in nsIDBChangeListener aInstigator)
void onHdrAdded (in nsIMsgDBHdr aHdrChanged, in nsMsgKey aParentKey, in long aFlags, in nsIDBChangeListener aInstigator)
void onParentChanged (in nsMsgKey aKeyChanged, in nsMsgKey oldParent, in nsMsgKey newParent, in nsIDBChangeListener aInstigator)
void onAnnouncerGoingAway (in nsIDBChangeAnnouncer instigator)
void onReadChanged (in nsIDBChangeListener aInstigator)
void onJunkScoreChanged (in nsIDBChangeListener aInstigator)
void OnStartRunningUrl (in nsIURI url)
void OnStopRunningUrl (in nsIURI url, in nsresult aExitCode)
boolean hasMoreElements ()
 Called to determine whether or not the enumerator has any elements that can be returned via getNext().
nsISupports getNext ()
 Called to retrieve the next element in the enumerator.

Static Public Member Functions

static nsMsgGroupRecordCreate (nsMsgGroupRecord *parent, const char *partname, PRInt64 m_addtime, PRInt32 uniqueid, PRInt32 fileoffset)
static nsMsgGroupRecordCreate (nsMsgGroupRecord *parent, const char *saveline, PRInt32 savelinelength, PRInt32 fileoffset)
static int GroupNameCompare (const char *name1, const char *name2, char delimiter= '.', PRBool caseInsensitive=PR_FALSE)
static nsMsgKeySetCreate ()
static nsMsgKeySetCreate (const char *str)

Public Attributes

PRBool mSuspendedWrite
nsCOMPtr< nsIRequestm_WriteRequest
nsCOMPtr< nsIAsyncOutputStreammAsyncOutStream
nsCOMPtr< nsIOutputStreamCallbackmProvider
nsCOMPtr< nsIEventQueuemProviderEventQ
PRBool mSuspendedRead
PRBool mInsertPeriodRequired
nsMsgFilePostHelper * mFilePostHelper
readonly attribute boolean isTransient
 The transaction's transient state.
attribute nsIURI originalURI
 The original URI used to construct the channel.
readonly attribute nsIURI URI
 The URI corresponding to the channel.
attribute nsISupports owner
 The owner, corresponding to the entity that is responsible for this channel.
attribute nsIInterfaceRequestor notificationCallbacks
 The notification callbacks for the channel.
readonly attribute nsISupports securityInfo
 Transport-level security information (if any) corresponding to the channel.
attribute ACString contentType
 The MIME type of the channel's content if available.
attribute ACString contentCharset
 The character set of the channel's content if available and if applicable.
attribute long contentLength
 The length of the data associated with the channel if available.
const unsigned long LOAD_DOCUMENT_URI = 1 << 16
 Set (e.g., by the docshell) to indicate whether or not the channel corresponds to a document URI.
const unsigned long LOAD_RETARGETED_DOCUMENT_URI = 1 << 17
 If the end consumer for this load has been retargeted after discovering it's content, this flag will be set:
const unsigned long LOAD_REPLACE = 1 << 18
 This flag is set to indicate that onStopRequest may be followed by another onStartRequest/onStopRequest pair.
const unsigned long LOAD_INITIAL_DOCUMENT_URI = 1 << 19
 Set (e.g., by the docshell) to indicate whether or not the channel corresponds to an initial document URI load (e.g., link click).
const unsigned long LOAD_TARGETED = 1 << 20
 Set (e.g., by the URILoader) to indicate whether or not the end consumer for this load has been determined.
const unsigned long LOAD_CALL_CONTENT_SNIFFERS = 1 << 21
 If this flag is set, the channel should call the content sniffers as described in nsNetCID.h about NS_CONTENT_SNIFFER_CATEGORY.
readonly attribute AUTF8String name
 The name of the request.
readonly attribute nsresult status
 The error status associated with the request.
attribute nsILoadGroup loadGroup
 The load group of this request.
attribute nsLoadFlags loadFlags
 The load flags of this request.
const unsigned long LOAD_NORMAL = 0
 No special load flags:
const unsigned long LOAD_BACKGROUND = 1 << 0
 Don't deliver status notifications to the nsIProgressEventSink, or keep this load from completing the nsILoadGroup it may belong to.
const unsigned long INHIBIT_CACHING = 1 << 7
 This flag prevents caching of any kind.
const unsigned long INHIBIT_PERSISTENT_CACHING = 1 << 8
 This flag prevents caching on disk (or other persistent media), which may be needed to preserve privacy.
const unsigned long LOAD_BYPASS_CACHE = 1 << 9
 Force an end-to-end download of content data from the origin server.
const unsigned long LOAD_FROM_CACHE = 1 << 10
 Load from the cache, bypassing protocol specific validation logic.
const unsigned long VALIDATE_ALWAYS = 1 << 11
 The following flags control the frequency of cached content validation when neither LOAD_BYPASS_CACHE or LOAD_FROM_CACHE are set.
const unsigned long VALIDATE_NEVER = 1 << 12
const unsigned long VALIDATE_ONCE_PER_SESSION = 1 << 13
readonly attribute nsIURI baseURI
attribute string errorMessage
readonly attribute
nsIMsgIncomingServer 
server
attribute nsIMsgFolder folder
attribute nsIMsgStatusFeedback statusFeedback
attribute nsIMsgWindow msgWindow
attribute nsIMimeHeaders mimeHeaders
readonly attribute nsILoadGroup loadGroup
attribute nsIMsgSearchSession searchSession
attribute boolean updatingFolder
attribute boolean addToMemoryCache
attribute boolean msgIsInLocalCache
attribute boolean suppressErrorMsgs
attribute nsICacheEntryDescriptor memCacheEntry
attribute nsICacheSession imageCacheSession
const unsigned long eCopy = 0
const unsigned long eMove = 1
const unsigned long eDisplay = 2
attribute nsIMsgHeaderSink msgHeaderSink
attribute AUTF8String filePath
 Returns a path including the directory and file portions of a URL.
attribute AUTF8String param
 Returns the parameters specified after the ; in the URL.
attribute AUTF8String query
 Returns the query portion (the part after the "?") of the URL.
attribute AUTF8String ref
 Returns the reference portion (the part after the "#") of the URL.
attribute AUTF8String directory
 Returns the directory portion of a URL.
attribute AUTF8String fileName
 Returns the file name portion of a URL.
attribute AUTF8String fileBaseName
 Returns the file basename portion of a filename in a url.
attribute AUTF8String fileExtension
 Returns the file extension portion of a filename in a url.
attribute AUTF8String spec
 Returns a string representation of the URI.
readonly attribute AUTF8String prePath
 The prePath (eg.
attribute ACString scheme
 The Scheme is the protocol to which this URI refers.
attribute AUTF8String userPass
 The username:password (or username only if value doesn't contain a ':')
attribute AUTF8String username
 The optional username and password, assuming the preHost consists of username:password.
attribute AUTF8String password
attribute AUTF8String hostPort
 The host:port (or simply the host, if port == -1).
attribute AUTF8String host
 The host is the internet domain name to which this URI refers.
attribute long port
 A port value of -1 corresponds to the protocol's default port (eg.
attribute AUTF8String path
 The path, typically including at least a leading '/' (but may also be empty, depending on the protocol).
readonly attribute ACString asciiSpec
 The URI spec with an ASCII compatible encoding.
readonly attribute ACString asciiHost
 The URI host with an ASCII compatible encoding.
readonly attribute ACString originCharset
 The charset of the document from which this URI originated.
attribute string key
 internal pref key - guaranteed to be unique across all servers
attribute wstring prettyName
 pretty name - should be "userid on hostname" if the pref is not set
readonly attribute wstring constructedPrettyName
 helper function to construct the pretty name in a server type specific way - e.g., mail for foo@t.nosp@m.est..nosp@m.com, news on news.mozilla.org
attribute string hostName
 hostname of the server
attribute string realHostName
 real hostname of the server (if server name is changed it's stored here)
attribute long port
attribute string username
 userid to log into the server
attribute string realUsername
 real username of the server (if username is changed it's stored here)
attribute string type
 protocol type, i.e.
readonly attribute AString accountManagerChrome
readonly attribute string localStoreType
 the schema for the local mail store, such as "mailbox", "imap", or "news" used to construct URIs
attribute boolean rememberPassword
attribute string password
attribute boolean downloadOnBiff
attribute boolean doBiff
attribute long biffMinutes
attribute unsigned long biffState
attribute boolean performingBiff
attribute nsIFileSpec localPath
readonly attribute string serverURI
attribute nsIMsgFolder rootFolder
readonly attribute nsIMsgFolder rootMsgFolder
attribute boolean serverBusy
attribute boolean isSecure
attribute boolean useSecAuth
const long defaultSocket = 0
const long tryTLS = 1
const long alwaysUseTLS = 2
const long useSSL = 3
attribute long socketType
attribute boolean logonFallback
readonly attribute boolean isSecureServer
attribute string redirectorType
attribute boolean emptyTrashOnExit
readonly attribute boolean serverRequiresPasswordForBiff
attribute boolean valid
readonly attribute boolean downloadMessagesAtStartup
readonly attribute boolean canHaveFilters
attribute boolean canDelete
 can this server be removed from the account manager? for instance, local mail is not removable, but an imported folder is
attribute boolean loginAtStartUp
attribute boolean limitOfflineMessageSize
attribute long maxMessageSize
attribute nsIMsgRetentionSettings retentionSettings
readonly attribute boolean canBeDefaultServer
readonly attribute boolean canSearchMessages
readonly attribute boolean canEmptyTrashOnExit
attribute boolean displayStartupPage
attribute nsIMsgDownloadSettings downloadSettings
attribute long offlineSupportLevel
readonly attribute boolean supportsDiskSpace
attribute boolean defaultCopiesAndFoldersPrefsToServer
 If the server supports Fcc/Sent/etc, default prefs can point to the server.
attribute boolean canCreateFoldersOnServer
attribute boolean canFileMessagesOnServer
readonly attribute boolean canCompactFoldersOnServer
readonly attribute boolean canUndoDeleteOnServer
readonly attribute
nsMsgSearchScopeValue 
filterScope
readonly attribute
nsMsgSearchScopeValue 
searchScope
readonly attribute boolean passwordPromptRequired
 If the password for the server is available either via authentication in the current session or from password manager stored entries, return false.
readonly attribute nsISpamSettings spamSettings
 spam settings
readonly attribute
nsIMsgFilterPlugin 
spamFilterPlugin
readonly attribute boolean isDeferredTo
const long keepDups = 0
const long deleteDups = 1
const long moveDupsToTrash = 2
const long markDupsRead = 3
attribute long incomingDuplicateAction
attribute string key
attribute wstring identityName
attribute wstring fullName
attribute string email
attribute string replyTo
attribute wstring organization
attribute boolean composeHtml
attribute boolean attachSignature
attribute boolean attachVCard
attribute boolean autoQuote
attribute long replyOnTop
attribute boolean sigBottom
attribute nsILocalFile signature
attribute long signatureDate
attribute string escapedVCard
attribute boolean doFcc
attribute string fccFolder
attribute string fccFolderPickerMode
attribute string draftsFolderPickerMode
attribute string tmplFolderPickerMode
attribute boolean bccSelf
attribute boolean bccOthers
attribute string bccList
attribute boolean doBcc
attribute string doBccList
attribute string draftFolder
attribute string stationeryFolder
attribute boolean showSaveMsgDlg
attribute string directoryServer
attribute boolean overrideGlobalPref
attribute boolean autocompleteToMyDomain
 If this is false, don't append the user's domain to an autocomplete address with no matches.
attribute boolean valid
 valid determines if the UI should use this identity and the wizard uses this to determine whether or not to ask the user to complete all the fields
attribute string smtpServerKey
 the preferred smtp server for this identity.
readonly attribute boolean requestReturnReceipt
 default request for return receipt option for this identity if this is set, the Return Receipt menu item on the compose window will be checked
readonly attribute long receiptHeaderType
attribute boolean fccReplyFollowsParent
readonly attribute string Value
 The single-byte string value of the resource.
readonly attribute AUTF8String ValueUTF8
 The UTF-8 URI of the resource.
const nsMsgBiffState nsMsgBiffState_NewMail = 0
const nsMsgBiffState nsMsgBiffState_NoMail = 1
const nsMsgBiffState nsMsgBiffState_Unknown = 2
readonly attribute wstring prettiestName
readonly attribute string folderURL
 URL for this folder.
readonly attribute boolean showDeletedMessages
 should probably move to the server
readonly attribute
nsIMsgIncomingServer 
server
 this folder's parent server
readonly attribute boolean isServer
 is this folder the "phantom" server folder?
readonly attribute boolean canSubscribe
readonly attribute boolean canFileMessages
readonly attribute boolean noSelect
readonly attribute boolean imapShared
readonly attribute boolean canDeleteMessages
readonly attribute boolean canCreateSubfolders
 does this folder allow subfolders? for example, newsgroups cannot have subfolders, and the INBOX on some IMAP servers cannot have subfolders
readonly attribute boolean canRename
 can you change the name of this folder? for example, newsgroups and some special folders can't be renamed
readonly attribute boolean canCompact
readonly attribute nsIMsgFolder rootFolder
 the phantom server folder
attribute boolean hasNewMessages
 does this folder have new messages
readonly attribute nsIMsgDBHdr firstNewMessage
 return the first new message in the folder
readonly attribute unsigned long expungedBytes
readonly attribute boolean deletable
 can this folder be deleted? for example, special folders cannot be deleted
readonly attribute boolean displayRecipients
 should we be displaying recipients instead of the sender? for example, in the Sent folder, recipients are more relevant than the sender
readonly attribute boolean manyHeadersToDownload
 used to determine if it will take a long time to download all the headers in this folder - so that we can do folder notifications synchronously instead of asynchronously
readonly attribute boolean requiresCleanup
readonly attribute boolean knowsSearchNntpExtension
 this should go into a news-specific interface
readonly attribute boolean allowsPosting
 this should go into a news-specific interface
readonly attribute string relativePathName
attribute unsigned long sizeOnDisk
 size of this folder on disk (not including .msf file) for imap, it's the sum of the size of the messages
readonly attribute string username
readonly attribute string hostname
attribute unsigned long flags
readonly attribute boolean locked
attribute string charset
 the charset of this folder
attribute boolean charsetOverride
attribute unsigned long biffState
readonly attribute wstring newMessagesNotificationDescription
 verbose description of the new messages in this folder
attribute boolean gettingNewMessages
attribute nsIFileSpec path
 local path of this folder
attribute nsILocalFile filePath
readonly attribute string baseMessageURI
const nsMsgDispositionState nsMsgDispositionState_None = -1
const nsMsgDispositionState nsMsgDispositionState_Replied = 0
const nsMsgDispositionState nsMsgDispositionState_Forwarded = 1
readonly attribute boolean supportsOffline
readonly attribute nsIOutputStream offlineStoreOutputStream
readonly attribute nsIInputStream offlineStoreInputStream
const unsigned long allMessageCountNotifications = 0
 Turn notifications on/off for various notification types.
attribute nsIMsgRetentionSettings retentionSettings
attribute nsIMsgDownloadSettings downloadSettings
attribute long sortOrder
 used for order in the folder pane, folder pickers, etc.
readonly attribute boolean persistElided
 used to determine if we persist the close / open state of this folder or not
readonly attribute nsIMsgFolder parentMsgFolder
attribute nsIDBFolderInfo dBTransferInfo
attribute nsMsgKey lastMessageLoaded
readonly attribute string URI
attribute wstring name
attribute wstring prettyName
readonly attribute wstring abbreviatedName
attribute nsIMsgFolder parent
readonly attribute boolean hasSubFolders
readonly attribute boolean inVFEditSearchScope
readonly attribute nsIMsgIdentity customIdentity

Protected Member Functions

void CreateSummaryFileName ()
virtual const char * GetIncomingServerType ()=0
virtual nsresult CreateBaseMessageURI (const char *aURI)
nsresult convertMsgSnippetToPlainText (nsAString &aMessageText)
void compressQuotesInMsgSnippet (const nsString &aMessageText, nsAString &aCompressedQuotesStr)
void decodeMsgSnippet (const nsACString &aEncodingType, PRBool aIsComplete, nsCString &aMsgSnippet)
nsresult parseURI (PRBool needServer=PR_FALSE)
nsresult GetBaseStringBundle (nsIStringBundle **aBundle)
nsresult GetStringFromBundle (const char *msgName, PRUnichar **aResult)
nsresult ThrowConfirmationPrompt (nsIMsgWindow *msgWindow, const PRUnichar *confirmString, PRBool *confirmed)
nsresult GetWarnFilterChanged (PRBool *aVal)
nsresult SetWarnFilterChanged (PRBool aVal)
nsresult CreateCollationKey (const nsString &aSource, PRUint8 **aKey, PRUint32 *aLength)
nsresult ListFoldersWithFlag (PRUint32 flag, nsISupportsArray *array)
virtual nsresult ReadDBFolderInfo (PRBool force)
virtual nsresult FlushToFolderCache ()
virtual nsresult GetDatabase (nsIMsgWindow *aMsgWindow)=0
virtual nsresult SendFlagNotifications (nsIMsgDBHdr *item, PRUint32 oldFlags, PRUint32 newFlags)
nsresult CheckWithNewMessagesStatus (PRBool messageAdded)
void UpdateNewMessages ()
nsresult OnHdrAddedOrDeleted (nsIMsgDBHdr *hdrChanged, PRBool added)
nsresult CreateFileSpecForDB (const char *userLeafName, nsFileSpec &baseDir, nsIFileSpec **dbFileSpec)
nsresult GetFolderCacheKey (nsIFileSpec **aFileSpec, PRBool createDBIfMissing=PR_FALSE)
nsresult GetFolderCacheElemFromFileSpec (nsIFileSpec *fileSpec, nsIMsgFolderCacheElement **cacheElement)
nsresult AddDirectorySeparator (nsFileSpec &path)
nsresult CheckIfFolderExists (const PRUnichar *newFolderName, nsIMsgFolder *parentFolder, nsIMsgWindow *msgWindow)
nsresult PromptForCachePassword (nsIMsgIncomingServer *server, nsIMsgWindow *aWindow, PRBool &passwordCorrect)
nsresult StartNewOfflineMessage ()
nsresult WriteStartOfNewLocalMessage ()
nsresult EndNewOfflineMessage ()
nsresult CompactOfflineStore (nsIMsgWindow *inWindow)
nsresult AutoCompact (nsIMsgWindow *aWindow)
nsresult MsgFitsDownloadCriteria (nsMsgKey msgKey, PRBool *result)
nsresult GetPromptPurgeThreshold (PRBool *aPrompt)
nsresult GetPurgeThreshold (PRInt32 *aThreshold)
nsresult ApplyRetentionSettings (PRBool deleteViaFolder)
nsresult PerformBiffNotifications (void)
nsresult CloseDBIfFolderNotOpen ()
virtual nsresult SpamFilterClassifyMessage (const char *aURI, nsIMsgWindow *aMsgWindow, nsIJunkMailPlugin *aJunkMailPlugin)
virtual nsresult SpamFilterClassifyMessages (const char **aURIArray, PRUint32 aURICount, nsIMsgWindow *aMsgWindow, nsIJunkMailPlugin *aJunkMailPlugin)
void SetMRUTime ()
 nsMsgGroupRecord (nsMsgGroupRecord *parent, const char *partname, PRInt64 m_addtime, PRInt32 uniqueid, PRInt32 fileoffset, char delimiter= '.')
int TweakFlag (PRUint32 flagbit, PRBool value)
char * SuckInName (char *ptr)
nsresult getPrefService ()
char * getPrefName (const char *identityKey, const char *pref)
char * getDefaultPrefName (const char *pref)
nsresult getCharPref (const char *pref, char **)
nsresult getDefaultCharPref (const char *pref, char **)
nsresult setCharPref (const char *pref, const char *)
nsresult getUnicharPref (const char *pref, PRUnichar **)
nsresult getDefaultUnicharPref (const char *pref, PRUnichar **)
nsresult setUnicharPref (const char *pref, const PRUnichar *)
nsresult getBoolPref (const char *pref, PRBool *)
nsresult getDefaultBoolPref (const char *pref, PRBool *)
nsresult setBoolPref (const char *pref, PRBool)
nsresult getIntPref (const char *pref, PRInt32 *)
nsresult getDefaultIntPref (const char *pref, PRInt32 *)
nsresult setIntPref (const char *pref, PRInt32)
nsresult getFolderPref (const char *pref, char **, PRBool)
nsresult setFolderPref (const char *pref, const char *)
void getPrefName (const char *serverKey, const char *pref, nsCString &fullPrefName)
void getDefaultPrefName (const char *pref, nsCString &fullPrefName)
nsresult ConfigureTemporaryReturnReceiptsFilter (nsIMsgFilterList *filterList)
nsresult ConfigureTemporaryServerSpamFilters (nsIMsgFilterList *filterList)
NS_IMETHOD GetPrefPassword (char **aPassword)
NS_IMETHOD SetPrefPassword (const char *aPassword)
PRBool PasswordProtectLocalCache ()
nsresult getDefaultCharPref (const char *pref, char **)
nsresult getDefaultUnicharPref (const char *pref, PRUnichar **)
nsresult getDefaultBoolPref (const char *pref, PRBool *)
nsresult getDefaultIntPref (const char *pref, PRInt32 *)
nsresult CreateLocalFolder (nsIFileSpec *path, const char *folderName)
nsresult GetDeferredServers (nsIMsgIncomingServer *server, nsISupportsArray **_retval)
nsresult CreateRootFolder ()
nsresult InternalSetHostName (const char *aHostname, const char *prefName)
nsresult getProtocolInfo (nsIMsgProtocolInfo **aResult)
 nsMsgKeySet ()
 nsMsgKeySet (const char *)
PRBool Grow ()
PRBool Optimize ()
 nsMsgLineBuffer (PRBool convertNewlinesP)
PRInt32 ConvertAndSendBuffer ()
void SetLookingForCRLF (PRBool b)
virtual ~nsMsgMailNewsUrl ()
virtual const char * GetUserName ()=0
virtual nsresult OpenNetworkSocket (nsIURI *aURL, const char *connectionType, nsIInterfaceRequestor *callbacks)
virtual nsresult OpenNetworkSocketWithInfo (const char *aHostName, PRInt32 aGetPort, const char *connectionType, nsIProxyInfo *aProxyInfo, nsIInterfaceRequestor *callbacks)
nsresult GetFileFromURL (nsIURI *aURL, nsIFile **aResult)
virtual nsresult OpenFileSocket (nsIURI *aURL, PRUint32 aStartPosition, PRInt32 aReadCount)
virtual nsresult CloseSocket ()
virtual nsresult SetupTransportState ()
virtual nsresult ProcessProtocolState (nsIURI *url, nsIInputStream *inputStream, PRUint32 sourceOffset, PRUint32 length)=0
virtual PRInt32 SendData (nsIURI *aURL, const char *dataBuffer, PRBool aSuppressLogging=PR_FALSE)
virtual nsresult PostMessage (nsIURI *url, nsIFileSpec *fileSpec)
virtual nsresult InitFromURI (nsIURI *aUrl)
nsresult DoNtlmStep1 (const char *username, const char *password, nsCString &response)
nsresult DoNtlmStep2 (nsCString &commandResponse, nsCString &response)
nsresult DoGSSAPIStep1 (const char *service, const char *username, nsCString &response)
nsresult DoGSSAPIStep2 (nsCString &commandResponse, nsCString &response)
nsresult GetPromptDialogFromUrl (nsIMsgMailNewsUrl *aMsgUrl, nsIPrompt **aPromptDialog)
virtual nsresult CloseSocket ()
nsresult CheckForToggleDelete (nsIMsgFolder *aFolder, const nsMsgKey &aMsgKey, PRBool *aResult)
void CreateSummaryFileName ()

Static Protected Member Functions

static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) mFolderLoadedAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) mDeleteOrMoveMsgCompletedAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) mDeleteOrMoveMsgFailedAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) mJunkStatusChangedAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsrefcnt) mInstanceCount
static NS_MSG_BASE_STATIC_MEMBER_ (nsrefcnt) gInstanceCount
static nsresult initializeStrings ()
static nsresult createCollationKeyGenerator ()
static NS_MSG_BASE_STATIC_MEMBER_ (PRUnichar *) kLocalizedInboxName
static NS_MSG_BASE_STATIC_MEMBER_ (PRUnichar *) kLocalizedTrashName
static NS_MSG_BASE_STATIC_MEMBER_ (PRUnichar *) kLocalizedSentName
static NS_MSG_BASE_STATIC_MEMBER_ (PRUnichar *) kLocalizedDraftsName
static NS_MSG_BASE_STATIC_MEMBER_ (PRUnichar *) kLocalizedTemplatesName
static NS_MSG_BASE_STATIC_MEMBER_ (PRUnichar *) kLocalizedUnsentName
static NS_MSG_BASE_STATIC_MEMBER_ (PRUnichar *) kLocalizedJunkName
static NS_MSG_BASE_STATIC_MEMBER_ (PRUnichar *) kLocalizedBrandShortName
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kTotalUnreadMessagesAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kBiffStateAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kNewMessagesAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kInVFEditSearchScopeAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kNumNewBiffMessagesAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kTotalMessagesAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kFolderSizeAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kStatusAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kFlaggedAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kNameAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kSynchronizeAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kOpenAtom
static NS_MSG_BASE_STATIC_MEMBER_ (nsIAtom *) kIsDeferred
static NS_MSG_BASE_STATIC_MEMBER_ (nsICollation *) gCollationKeyGenerator
static const NS_MSG_BASE_STATIC_MEMBER_ (nsStaticAtom) folder_atoms[]
static PRBool evictOldEntries (nsHashKey *aKey, void *element, void *aData)

Protected Attributes

nsIEnumeratormEnum
nsISupports * mCurrent
PRBool mStarted
nsVoidArray m_sourceKeyArrays
nsCOMPtr< nsISupportsArraym_destFolders
nsCOMPtr< nsIMsgWindowm_msgWindow
nsCOMPtr< nsIMsgFolderm_sourceFolder
PRBool m_doNewMailNotification
PRBool m_hasPendingMoves
nsVoidArray m_keyBuckets
PRInt32 m_outstandingMoves
nsCOMPtr< nsIMsgDatabasemDatabase
nsCString mCharset
PRBool mCharsetOverride
PRBool mAddListener
PRBool mNewMessages
PRBool mGettingNewMessages
nsMsgKey mLastMessageLoaded
nsCOMPtr< nsIMsgDBHdrm_offlineHeader
PRInt32 m_numOfflineMsgLines
nsCOMPtr< nsIOutputStreamm_tempMessageStream
nsCOMPtr< nsIMsgRetentionSettingsm_retentionSettings
nsCOMPtr< nsIMsgDownloadSettingsm_downloadSettings
PRUint32 mFlags
nsWeakPtr mParent
PRInt32 mNumUnreadMessages
PRInt32 mNumTotalMessages
PRBool mNotifyCountChanges
PRUint32 mExpungedBytes
nsCOMPtr< nsISupportsArraymSubFolders
nsVoidArray mListeners
PRBool mInitializedFromCache
nsISupports * mSemaphoreHolder
nsWeakPtr mServer
PRInt32 mNumPendingUnreadMessages
PRInt32 mNumPendingTotalMessages
PRUint32 mFolderSize
PRInt32 mNumNewBiffMessages
PRBool mIsCachable
nsMsgKeyArray m_saveNewMsgs
nsMsgKeyArray m_newMsgs
PRBool mHaveParsedURI
PRBool mIsServerIsValid
PRBool mIsServer
nsString mName
nsCOMPtr< nsIFileSpecmPath
char * mBaseMessageURI
PRBool mInVFEditSearchScope
char * m_partname
char * m_prettyname
nsMsgGroupRecordm_parent
nsMsgGroupRecordm_children
nsMsgGroupRecordm_sibling
PRUint32 m_flags
PRInt64 m_addtime
PRInt32 m_uniqueId
PRInt32 m_fileoffset
char m_delimiter
nsCString m_serverKey
nsCOMPtr< nsIMsgFolderm_rootFolder
nsCOMPtr< nsIFileSpecmFilterFile
nsCOMPtr< nsIMsgFilterListmFilterList
nsHashtable m_downloadedHdrs
PRInt32 m_numMsgsDownloaded
PRPackedBool m_canHaveFilters
PRPackedBool m_displayStartupPage
PRPackedBool mPerformingBiff
PRInt32m_data
PRInt32 m_data_size
PRInt32 m_length
PRInt32 m_cached_value
PRInt32 m_cached_value_index
char * m_buffer
PRUint32 m_bufferSize
PRUint32 m_bufferPos
nsMsgLineBufferHandler * m_handler
PRBool m_convertNewlinesP
PRBool m_lookingForCRLF
PRBool m_eatCRLFs
PRBool m_allocateNewLines
char * m_dataBuffer
PRUint32 m_dataBufferSize
PRUint32 m_startPos
PRUint32 m_numBytesInBuffer
char m_lineToken
nsCOMPtr< nsIURLm_baseURL
nsCOMPtr< nsIMsgStatusFeedbackm_statusFeedback
nsCOMPtr< nsILoadGroupm_loadGroup
nsCOMPtr< nsIMimeHeadersmMimeHeaders
nsCOMPtr< nsIMsgSearchSessionm_searchSession
nsCOMPtr< nsICacheEntryDescriptorm_memCacheEntry
nsCOMPtr< nsICacheSessionm_imageCacheSession
nsCOMPtr< nsISupportsArraym_cachedMemCacheEntries
nsCOMPtr< nsIMsgHeaderSinkmMsgHeaderSink
char * m_errorMessage
PRBool m_runningUrl
PRBool m_updatingFolder
PRBool m_addContentToCache
PRBool m_msgIsInLocalCache
PRBool m_suppressErrorMsgs
nsCString mAttachmentFileName
nsCOMPtr< nsIUrlListenerManagerm_urlListeners
nsCOMPtr< nsIOutputStreamm_outputStream
nsCOMPtr< nsIInputStreamm_inputStream
nsCOMPtr< nsITransportm_transport
nsCOMPtr< nsIRequestm_request
PRBool m_socketIsOpen
PRInt32 m_readCount
nsFileSpec m_tempMsgFileSpec
nsCOMPtr< nsIAuthModulem_authModule
nsCOMPtr< nsIURIm_originalUrl
nsCOMPtr< nsIURIm_url
nsCOMPtr< nsIStreamListenerm_channelListener
nsCOMPtr< nsISupports > m_channelContext
nsLoadFlags mLoadFlags
nsCOMPtr< nsIProgressEventSinkmProgressEventSink
nsCOMPtr< nsIInterfaceRequestormCallbacks
nsCOMPtr< nsISupports > mOwner
nsCString m_ContentType
nsCString m_lastPasswordSent
PRBool mSuppressListenerNotifications
nsCOMPtr< nsIInputStreammInStream
nsCOMPtr< nsIInputStreammPostDataStream
PRUint32 mSuspendedReadBytes
PRUint32 mSuspendedReadBytesPostPeriod
PRUint32 mFilePostSize
PRUint32 mNumBytesPosted
PRBool mGenerateProgressNotifications
PRUint32 m_txnType
PRUint32 m_nSize
PRUint32 m_nMaxSize
PRUint32 m_nGrowBy
PRUint32m_pData
PRUint8m_pData
PRInt32 m_nSize
PRInt32 m_nMaxSize
PRInt32 m_nGrowBy
nsCString mURI
DelegateEntrymDelegates

Static Protected Attributes

static nsIRDFServicegRDFService = nsnull
static nsrefcnt gRDFServiceRefCnt = 0

Private Member Functions

nsresult loadSmtpServer (nsISmtpServer **)
NS_DECL_ISUPPORTS_INHERITED nsMsgTxn ()
virtual ~nsMsgTxn ()
NS_IMETHOD DoTransaction (void)
NS_IMETHOD UndoTransaction (void)=0
NS_IMETHOD RedoTransaction (void)=0
NS_IMETHOD GetIsTransient (PRBool *aIsTransient)
NS_IMETHOD Merge (nsITransaction *aTransaction, PRBool *aDidMerge)
nsresult GetMsgWindow (nsIMsgWindow **msgWindow)
nsresult SetMsgWindow (nsIMsgWindow *msgWindow)
nsresult SetTransactionType (PRUint32 txnType)

Private Attributes

nsIMsgSignaturem_signature
char * m_identityKey
nsIPrefBranchm_prefBranch
nsWeakPtr m_smtpServer
nsCString m_password
PRUint32 m_biffState
PRPackedBool m_serverBusy
nsCOMPtr< nsISpamSettingsmSpamSettings
nsCOMPtr< nsIMsgFilterPluginmFilterPlugin

Friends

class nsMoveCoalescerCopyListener

Detailed Description

Definition at line 46 of file nsAdapterEnumerator.h.


Constructor & Destructor Documentation

virtual NS_MSG_BASE::~nsAdapterEnumerator ( ) [virtual]
virtual NS_MSG_BASE::~nsImapMoveCoalescer ( ) [virtual]
virtual NS_MSG_BASE::~nsMsgDBFolder ( void  ) [virtual]
virtual NS_MSG_BASE::~nsMsgGroupRecord ( ) [virtual]
virtual NS_MSG_BASE::~nsMsgIdentity ( ) [virtual]
virtual NS_MSG_BASE::~nsMsgIncomingServer ( ) [virtual]
virtual NS_MSG_BASE::~nsByteArray ( ) [virtual]
virtual NS_MSG_BASE::~nsMsgLineBuffer ( ) [virtual]
virtual NS_MSG_BASE::~nsMsgLineStreamBuffer ( ) [virtual]
virtual NS_MSG_BASE::~nsMsgMailNewsUrl ( ) [protected, virtual]
virtual NS_MSG_BASE::~nsMsgProtocol ( ) [virtual]
virtual NS_MSG_BASE::~nsMsgTxn ( ) [private, virtual]
virtual NS_MSG_BASE::~nsUInt32Array ( ) [virtual]

Member Function Documentation

void nsIMsgFolder::acquireSemaphore ( in nsISupports  semHolder) [inherited]
PRInt32 NS_MSG_BASE::Add ( PRUint8  newElement)
PRUint32 NS_MSG_BASE::Add ( nsMsgKey  key) [inline]

Definition at line 78 of file nsMsgKeyArray.h.

                                  {
         return(nsUInt32Array::Add((uint32)key));
       }

Here is the caller graph for this function:

PRUint32 NS_MSG_BASE::Add ( PRUint32 elementPtr,
PRUint32  numElements 
)
PRUint32 NS_MSG_BASE::Add ( nsMsgKey elementPtr,
PRUint32  numElements 
) [inline]

Definition at line 81 of file nsMsgKeyArray.h.

                                                                {
         return nsUInt32Array::Add((PRUint32 *) elementPtr, numElements);
       }

Here is the call graph for this function:

Here is the caller graph for this function:

void nsIMsgFolder::addKeywordsToMessages ( in nsISupportsArray  aMessages,
in string  aKeywords 
) [inherited]
void nsIMsgFolder::addMessageDispositionState ( in nsIMsgDBHdr  aMessage,
in nsMsgDispositionState  aDispositionFlag 
) [inherited]
int NS_MSG_BASE::AddRange ( PRInt32  first,
PRInt32  last 
)
nsIMsgFolder nsIMsgFolder::addSubfolder ( in AString  folderName) [inherited]
void NS_MSG_BASE::AllocateSpace ( PRUint32  nNewSize) [inline]

Definition at line 57 of file nsUint8Array.h.

{ if (nNewSize == 0) return; PRInt32 saveSize = m_nSize; SetSize(nNewSize); m_nSize = saveSize;};

Here is the call graph for this function:

PRBool NS_MSG_BASE::AllocateSpace ( PRUint32  nNewSize) [inline]

Definition at line 63 of file nsUInt32Array.h.

                                                     {
    if (nNewSize == 0) return PR_TRUE;
    PRUint32 saveSize = m_nSize;
    nsresult rv = SetSize(nNewSize);
    m_nSize = saveSize;
    return rv;
  };

Here is the call graph for this function:

nsresult NS_MSG_BASE::AppendBuffer ( const char *  buffer,
PRUint32  length 
)
void nsICollection::AppendElement ( in nsISupports  item) [inherited]
nsresult NS_MSG_BASE::ApplyRetentionSettings ( PRBool  deleteViaFolder) [protected]
void nsIChannel::asyncOpen ( in nsIStreamListener  aListener,
in nsISupports  aContext 
) [inherited]

Asynchronously open this channel.

Data is fed to the specified stream listener as it becomes available. The stream listener's methods are called on the thread that calls asyncOpen and are not called until after asyncOpen returns.

Parameters:
aListenerthe nsIStreamListener implementation
aContextan opaque parameter forwarded to aListener's methods
nsresult NS_MSG_BASE::AutoCompact ( nsIMsgWindow aWindow) [protected]
PRInt32 NS_MSG_BASE::BufferInput ( const char *  net_buffer,
PRInt32  net_buffer_size 
)
void nsIRequest::cancel ( in nsresult  aStatus) [inherited]

Cancels the current request.

This will close any open input or output streams and terminate any async requests. Users should normally pass NS_BINDING_ABORTED, although other errors may also be passed. The error passed in will become the value of the status attribute.

Parameters:
aStatusthe reason for canceling this request.

NOTE: most nsIRequest implementations expect aStatus to be a failure code; however, some implementations may allow aStatus to be a success code such as NS_OK. In general, aStatus should be a failure code.

nsresult NS_MSG_BASE::CheckForToggleDelete ( nsIMsgFolder aFolder,
const nsMsgKey aMsgKey,
PRBool aResult 
) [protected]
nsresult NS_MSG_BASE::CheckIfFolderExists ( const PRUnichar newFolderName,
nsIMsgFolder parentFolder,
nsIMsgWindow msgWindow 
) [protected]
void nsICollection::Clear ( ) [inherited]

Implemented in NS_COM, NS_COM, NS_COM, NS_COM, NS_COM, NS_COM, NS_COM, and NS_COM.

Here is the caller graph for this function:

this is really dangerous.

this destroys all pref values do not call this unless you know what you're doing!

this is really dangerous.

this destroys all pref values do not call this unless you know what you're doing!

virtual void NS_MSG_BASE::ClearFlag ( PRUint32  flag) [inline, virtual]

Definition at line 103 of file nsMsgProtocol.h.

{ m_flags &= ~flag; }
void nsIMsgFolder::clearFlag ( in unsigned long  flag) [inherited]

clear new status flag of all of the new messages

If Sent folder pref is changed we need to clear the temporary return receipt filter so that the new return receipt filter can be recreated (by ConfigureTemporaryReturnReceiptsFilter()).

nsIURI nsIURI::clone ( ) [inherited]

Clones the current URI.

For some protocols, this is more than just an optimization. For example, under MacOS, the spec of a file URL does not necessarily uniquely identify a file since two volumes could share the same name.

Here is the caller graph for this function:

Here is the caller graph for this function:

virtual nsresult NS_MSG_BASE::CloseSocket ( ) [protected, virtual]
virtual nsresult NS_MSG_BASE::CloseSocket ( ) [protected, virtual]
void nsIMsgFolder::compact ( in nsIUrlListener  aListener,
in nsIMsgWindow  aMsgWindow 
) [inherited]
void nsIMsgFolder::compactAll ( in nsIUrlListener  aListener,
in nsIMsgWindow  aMsgWindow,
in nsISupportsArray  aFolderArray,
in boolean  aCompactOfflineAlso,
in nsISupportsArray  aOfflineFolderArray 
) [inherited]
void nsIMsgFolder::compactAllOfflineStores ( in nsIMsgWindow  aMsgWindow,
in nsISupportsArray  aOfflineFolderArray 
) [inherited]
long nsIMsgFolder::compareSortKeys ( in nsIMsgFolder  msgFolder) [inherited]
void NS_MSG_BASE::compressQuotesInMsgSnippet ( const nsString aMessageText,
nsAString &  aCompressedQuotesStr 
) [protected]

for mail, this configures both the MDN filter, and the server-side spam filter filters, if needed.

If we have set up to filter return receipts into our Sent folder, this utility method creates a filter to do that, and adds it to our filterList if it doesn't exist. If it does, it will enable it.

this is not used by news filters (yet).

boolean nsIMsgFolder::containsChildNamed ( in wstring  name) [inherited]

looks in immediate children of this folder for the given name

Parameters:
namethe name of the target subfolder
nsresult NS_MSG_BASE::convertMsgSnippetToPlainText ( nsAString &  aMessageText) [protected]
void nsIMsgIdentity::copy ( in nsIMsgIdentity  identity) [inherited]

Definition at line 84 of file nsMsgKeyArray.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 85 of file nsMsgKeyArray.h.

Here is the call graph for this function:

void nsIMsgFolder::copyDataToOutputStreamForAppend ( in nsIInputStream  aIStream,
in long  aLength,
in nsIOutputStream  outputStream 
) [inherited]
void nsIMsgFolder::copyFileMessage ( in nsIFileSpec  fileSpec,
in nsIMsgDBHdr  msgToReplace,
in boolean  isDraft,
in unsigned long  newMsgFlags,
in nsIMsgWindow  msgWindow,
in nsIMsgCopyServiceListener  listener 
) [inherited]
void nsIMsgFolder::copyFolder ( in nsIMsgFolder  srcFolder,
in boolean  isMoveFolder,
in nsIMsgWindow  msgWindow,
in nsIMsgCopyServiceListener  listener 
) [inherited]
void nsIMsgFolder::copyMessages ( in nsIMsgFolder  srcFolder,
in nsISupportsArray  messages,
in boolean  isMove,
in nsIMsgWindow  msgWindow,
in nsIMsgCopyServiceListener  listener,
in boolean  isFolder,
in boolean  allowUndo 
) [inherited]
PRUint32 nsICollection::Count ( ) [inherited]

Implemented in NS_COM, NS_COM, NS_COM, NS_COM, and NS_COM.

static nsMsgGroupRecord* NS_MSG_BASE::Create ( nsMsgGroupRecord parent,
const char *  partname,
PRInt64  m_addtime,
PRInt32  uniqueid,
PRInt32  fileoffset 
) [static]
static nsMsgKeySet* NS_MSG_BASE::Create ( ) [static]
static nsMsgGroupRecord* NS_MSG_BASE::Create ( nsMsgGroupRecord parent,
const char *  saveline,
PRInt32  savelinelength,
PRInt32  fileoffset 
) [static]
static nsMsgKeySet* NS_MSG_BASE::Create ( const char *  str) [static]
virtual nsresult NS_MSG_BASE::CreateBaseMessageURI ( const char *  aURI) [protected, virtual]
nsresult NS_MSG_BASE::CreateCollationKey ( const nsString aSource,
PRUint8 **  aKey,
PRUint32 aLength 
) [protected]
static nsresult NS_MSG_BASE::createCollationKeyGenerator ( ) [static, protected]
nsresult NS_MSG_BASE::CreateFileSpecForDB ( const char *  userLeafName,
nsFileSpec baseDir,
nsIFileSpec **  dbFileSpec 
) [protected]
nsresult NS_MSG_BASE::CreateLocalFolder ( nsIFileSpec path,
const char *  folderName 
) [protected]
void nsIMsgFolder::createSubfolder ( in wstring  folderName,
in nsIMsgWindow  msgWindow 
) [inherited]
void NS_MSG_BASE::decodeMsgSnippet ( const nsACString &  aEncodingType,
PRBool  aIsComplete,
nsCString aMsgSnippet 
) [protected]
void nsIMsgFolder::Delete ( ) [inherited]

Here is the caller graph for this function:

void nsIMsgFolder::deleteMessages ( in nsISupportsArray  messages,
in nsIMsgWindow  msgWindow,
in boolean  deleteStorage,
in boolean  isMove,
in nsIMsgCopyServiceListener  listener,
in boolean  allowUndo 
) [inherited]
void nsIMsgFolder::deleteSubFolders ( in nsISupportsArray  folders,
in nsIMsgWindow  msgWindow 
) [inherited]
nsresult NS_MSG_BASE::DoGSSAPIStep1 ( const char *  service,
const char *  username,
nsCString response 
) [protected]
nsresult NS_MSG_BASE::DoGSSAPIStep2 ( nsCString commandResponse,
nsCString response 
) [protected]
nsresult NS_MSG_BASE::DoNtlmStep1 ( const char *  username,
const char *  password,
nsCString response 
) [protected]
nsresult NS_MSG_BASE::DoNtlmStep2 ( nsCString commandResponse,
nsCString response 
) [protected]

Executes the transaction.

void nsIMsgFolder::downloadAllForOffline ( in nsIUrlListener  listener,
in nsIMsgWindow  window 
) [inherited]

Here is the caller graph for this function:

void nsIMsgFolder::emptyTrash ( in nsIMsgWindow  aMsgWindow,
in nsIUrlListener  aListener 
) [inherited]
void nsIMsgFolder::enableNotifications ( in long  notificationType,
in boolean  enable,
in boolean  dbBatching 
) [inherited]

Here is the caller graph for this function:

boolean nsIURI::equals ( in nsIURI  other) [inherited]

URI equivalence test (not a strict string comparison).

eg. http://foo.com:80/ == http://foo.com/

boolean nsIRDFNode::EqualsNode ( in nsIRDFNode  aNode) [inherited]
NS_IMETHODIMP nsRDFResource::EqualsNode ( nsIRDFNode aNode,
PRBool aResult 
) [inherited]

Definition at line 84 of file nsRDFResource.cpp.

{
    NS_PRECONDITION(aNode != nsnull, "null ptr");
    if (! aNode)
        return NS_ERROR_NULL_POINTER;

    nsresult rv;
    nsIRDFResource* resource;
    rv = aNode->QueryInterface(NS_GET_IID(nsIRDFResource), (void**)&resource);
    if (NS_SUCCEEDED(rv)) {
        *aResult = (NS_STATIC_CAST(nsIRDFResource*, this) == resource);
        NS_RELEASE(resource);
        return NS_OK;
    }
    else if (rv == NS_NOINTERFACE) {
        *aResult = PR_FALSE;
        return NS_OK;
    }
    else {
        return rv;
    }
}
NS_IMETHODIMP nsRDFResource::EqualsString ( const char *  aURI,
PRBool aResult 
) [inherited]

Definition at line 156 of file nsRDFResource.cpp.

{
    NS_PRECONDITION(aURI != nsnull, "null ptr");
    if (! aURI)
        return NS_ERROR_NULL_POINTER;

    NS_PRECONDITION(aResult, "null ptr");

    *aResult = mURI.Equals(aURI);
    return NS_OK;
}

Determine if the resource has the given URI.

static PRBool NS_MSG_BASE::evictOldEntries ( nsHashKey *  aKey,
void element,
void aData 
) [static, protected]
void nsIMsgFolder::fetchMsgPreviewText ( [array, size_is(aNumKeys)] in nsMsgKey  aKeysToFetch,
in unsigned long  aNumKeys,
in boolean  aLocalOnly,
in nsIUrlListener  aUrlListener,
out boolean  aAsyncResults 
) [inherited]

Get the beginning of the message bodies for the passed in keys and store them in the msg hdr property "preview".

This is intended for new mail alerts, title tips on folders with new messages, and perhaps titletips/message preview in the thread pane.

Parameters:
aKeysToFetchkeys of msgs to fetch
aNumKeysnumber of keys to fetch
aLocalOnlywhether to fetch msgs from server (imap msgs might be in memory cache from junk filter)
aUrlListenerurl listener to notify if we run url to fetch msgs
Returns:
aAsyncResults if true, we ran a url to fetch one or more of msg bodies
nsMsgViewIndex NS_MSG_BASE::FindIndex ( nsMsgKey  key,
PRUint32  startIndex = 0 
)
nsIMsgFolder nsIMsgFolder::FindSubFolder ( in ACString  escapedSubFolderName) [inherited]
int NS_MSG_BASE::FirstMissingRange ( PRInt32  min,
PRInt32  max,
PRInt32 first,
PRInt32 last 
)
virtual PRInt32 NS_MSG_BASE::FlushLastLine ( ) [virtual]
virtual nsresult NS_MSG_BASE::FlushToFolderCache ( ) [protected, virtual]

Here is the caller graph for this function:

wstring nsIMsgFolder::generateUniqueSubfolderName ( in wstring  prefix,
in nsIMsgFolder  otherFolder 
) [inherited]

Definition at line 98 of file nsMsgGroupRecord.h.

{return m_addtime;}

Definition at line 84 of file nsUint8Array.h.

{return((PRUint8*)m_pData);}              // only valid until another function called on the array (like GetBuffer() in CString)

Definition at line 91 of file nsMsgKeyArray.h.

                                                         {
         return((nsMsgKey*)m_pData);             // only valid until another function
                                                                      // called on the array (like
                                                                      // GetBuffer() in CString)
       }
nsMsgKey NS_MSG_BASE::GetAt ( PRUint32  nIndex) const [inline]

Definition at line 63 of file nsMsgKeyArray.h.

                                             {
         return(operator[](nIndex));
       }

Here is the caller graph for this function:

PRUint8 NS_MSG_BASE::GetAt ( PRInt32  nIndex) const
nsresult NS_MSG_BASE::getBoolPref ( const char *  pref,
PRBool  
) [protected]
char* NS_MSG_BASE::GetBuffer ( ) [inline]

Definition at line 57 of file nsMsgLineBuffer.h.

{return m_buffer;}

Definition at line 52 of file nsMsgLineBuffer.h.

{return m_bufferPos;}

Definition at line 79 of file nsMsgLineBuffer.h.

{return m_bufferPos;}
nsresult NS_MSG_BASE::getCharPref ( const char *  pref,
char **   
) [protected]
nsISupports nsIMsgFolder::getChildNamed ( in wstring  name) [inherited]

Definition at line 83 of file nsMsgGroupRecord.h.

{return m_children;}
nsIMsgFolder nsIMsgFolder::getChildWithURI ( in string  uri,
in boolean  deep,
in boolean  caseInsensitive 
) [inherited]
AUTF8String nsIURL::getCommonBaseSpec ( in nsIURI  aURIToCompare) [inherited]

This method takes a uri and compares the two.

The common uri portion is returned as a string. The minimum common uri portion is the protocol, and any of these if present: login, password, host and port If no commonality is found, "" is returned. If they are identical, the whole path with file/ref/etc. is returned. For file uris, it is expected that the common spec would be at least "file:///" since '/' is a shared common root.

Examples: this.spec aURIToCompare.spec result 1) http://mozilla.org/ http://www.mozilla.org/ "" 2) http://foo.com/bar/ ftp://foo.com/bar/ "" 3) http://foo.com:8080/ http://foo.com/bar/ "" 4) ftp://user@foo.com/ ftp://user:pw@foo.com/ "" 5) ftp://foo.com/bar/ ftp://foo.com/bar ftp://foo.com/ 6) ftp://foo.com/bar/ ftp://foo.com/bar/b.html ftp://foo.com/bar/ 7) http://foo.com/a.htm#i http://foo.com/b.htm http://foo.com/ 8) ftp://foo.com/c.htm#i ftp://foo.com/c.htm ftp://foo.com/c.htm 9) file:///a/b/c.html file:///d/e/c.html file:///

virtual nsresult NS_MSG_BASE::GetDatabase ( nsIMsgWindow aMsgWindow) [protected, pure virtual]
nsresult NS_MSG_BASE::getDefaultBoolPref ( const char *  pref,
PRBool  
) [protected]
nsresult NS_MSG_BASE::getDefaultBoolPref ( const char *  pref,
PRBool  
) [protected]
nsresult NS_MSG_BASE::getDefaultCharPref ( const char *  pref,
char **   
) [protected]
nsresult NS_MSG_BASE::getDefaultCharPref ( const char *  pref,
char **   
) [protected]
nsresult NS_MSG_BASE::getDefaultIntPref ( const char *  pref,
PRInt32  
) [protected]
nsresult NS_MSG_BASE::getDefaultIntPref ( const char *  pref,
PRInt32  
) [protected]
char* NS_MSG_BASE::getDefaultPrefName ( const char *  pref) [protected]
void NS_MSG_BASE::getDefaultPrefName ( const char *  pref,
nsCString fullPrefName 
) [protected]
nsresult NS_MSG_BASE::getDefaultUnicharPref ( const char *  pref,
PRUnichar **   
) [protected]
nsresult NS_MSG_BASE::getDefaultUnicharPref ( const char *  pref,
PRUnichar **   
) [protected]
NS_IMETHODIMP nsRDFResource::GetDelegate ( const char *  aKey,
REFNSIID  aIID,
void **  aResult 
) [inherited]

Definition at line 169 of file nsRDFResource.cpp.

{
    NS_PRECONDITION(aKey != nsnull, "null ptr");
    if (! aKey)
        return NS_ERROR_NULL_POINTER;

    nsresult rv;
    *aResult = nsnull;

    DelegateEntry* entry = mDelegates;
    while (entry) {
        if (entry->mKey.Equals(aKey)) {
            rv = entry->mDelegate->QueryInterface(aIID, aResult);
            return rv;
        }

        entry = entry->mNext;
    }

    // Construct a ContractID of the form "@mozilla.org/rdf/delegate/[key]/[scheme];1
    nsCAutoString contractID(NS_RDF_DELEGATEFACTORY_CONTRACTID_PREFIX);
    contractID.Append(aKey);
    contractID.Append("&scheme=");

    PRInt32 i = mURI.FindChar(':');
    contractID += StringHead(mURI, i);

    nsCOMPtr<nsIRDFDelegateFactory> delegateFactory =
             do_CreateInstance(contractID.get(), &rv);
    if (NS_FAILED(rv)) return rv;

    rv = delegateFactory->CreateDelegate(this, aKey, aIID, aResult);
    if (NS_FAILED(rv)) return rv;

    // Okay, we've successfully created a delegate. Let's remember it.
    entry = new DelegateEntry;
    if (! entry) {
        NS_RELEASE(*NS_REINTERPRET_CAST(nsISupports**, aResult));
        return NS_ERROR_OUT_OF_MEMORY;
    }
    
    entry->mKey      = aKey;
    entry->mDelegate = do_QueryInterface(*NS_REINTERPRET_CAST(nsISupports**, aResult), &rv);
    if (NS_FAILED(rv)) {
        NS_ERROR("nsRDFResource::GetDelegate(): can't QI to nsISupports!");

        delete entry;
        NS_RELEASE(*NS_REINTERPRET_CAST(nsISupports**, aResult));
        return NS_ERROR_FAILURE;
    }

    entry->mNext     = mDelegates;

    mDelegates = entry;

    return NS_OK;
}

Here is the call graph for this function:

void nsIRDFResource::GetDelegate ( in string  aKey,
in nsIIDRef  aIID,
[iid_is(aIID), retval] out nsQIResult  aResult 
) [inherited]

Retrieve the "delegate" object for this resource.

A resource may have several delegate objects, each of whose lifetimes is bound to the life of the resource object.

This method will return the delegate for the given key after QueryInterface()-ing it to the requested IID.

If no delegate exists for the specified key, this method will attempt to create one using the component manager. Specifically, it will combine aKey with the resource's URI scheme to produce a ContractID as follows:

component:/rdf/delegate-factory/[key]/[scheme]

This ContractID will be used to locate a factory using the FindFactory() method of nsIComponentManager. If the nsIFactory exists, it will be used to create a "delegate factory"; that is, an object that supports nsIRDFDelegateFactory. The delegate factory will be used to construct the delegate object.

Here is the caller graph for this function:

nsISupports nsICollection::GetElementAt ( in PRUint32  index) [inherited]

Here is the caller graph for this function:

void nsIMsgFolder::getExpansionArray ( in nsISupportsArray  expansionArray) [inherited]
nsresult NS_MSG_BASE::GetFileFromURL ( nsIURI aURL,
nsIFile **  aResult 
) [protected]

Definition at line 135 of file nsMsgGroupRecord.h.

{return m_fileoffset;}

function to get the filter list on folder's server (or in the case of news, the filter list for this newsgroup)'

boolean nsIMsgFolder::getFlag ( in unsigned long  flag) [inherited]
nsresult NS_MSG_BASE::GetFolderCacheKey ( nsIFileSpec **  aFileSpec,
PRBool  createDBIfMissing = PR_FALSE 
) [protected]
nsresult NS_MSG_BASE::getFolderPref ( const char *  pref,
char **  ,
PRBool   
) [protected]
nsIMsgFolder nsIMsgFolder::getFoldersWithFlag ( in unsigned long  flags,
in unsigned long  resultsize,
out unsigned long  numFolders 
) [inherited]
virtual char NS_MSG_BASE::GetHierarchySeparator ( ) [inline, virtual]

Definition at line 152 of file nsMsgGroupRecord.h.

{ return '.'; }
virtual nsIMAPGroupRecord* NS_MSG_BASE::GetIMAPGroupRecord ( ) [inline, virtual]

Definition at line 66 of file nsMsgGroupRecord.h.

{ return 0; }
virtual const char* NS_MSG_BASE::GetIncomingServerType ( ) [protected, pure virtual]
nsresult NS_MSG_BASE::getIntPref ( const char *  pref,
PRInt32  
) [protected]
NS_IMETHOD NS_MSG_BASE::GetIsTransient ( PRBool aIsTransient) [private]

Definition at line 60 of file nsMsgKeyArray.h.

                                                 {
         return(operator[](nIndex));
       }

Definition at line 103 of file nsMsgKeySet.h.

{return m_length;}
nsIMsgFolder nsIMsgIncomingServer::getMsgFolderFromURI ( in nsIMsgFolder  aFolderResource,
in string  aURI 
) [inherited]
ACString nsIMsgFolder::getMsgTextFromStream ( in nsIMsgDBHdr  aMsgHdr,
in nsIInputStream  aStream,
in long  aBytesToRead,
in long  aMaxOutputLen,
in boolean  aCompressQuotes 
) [inherited]

Extract the message preview text from aStream, storing it as a string property on aMsgHdr.

Parameters:
aMsgHdr
aStream
aBytesToReadnumber of bytes to read from the stream
aMaxOutputLendesired length of the converted message text. Used to control how many characters of msg text we want to store.
aCompressQuotesReplace quotes and citations with " ... " in the preview text

Definition at line 68 of file nsImapMoveCoalescer.h.

{return m_msgWindow;}
nsresult NS_MSG_BASE::GetMsgWindow ( nsIMsgWindow **  msgWindow) [private]
void nsIMsgIncomingServer::getNewMessages ( in nsIMsgFolder  aFolder,
in nsIMsgWindow  aMsgWindow,
in nsIUrlListener  aUrlListener 
) [inherited]
void nsIMsgFolder::getNewMessages ( in nsIMsgWindow  aWindow,
in nsIUrlListener  aListener 
) [inherited]
NS_IMETHOD NS_MSG_BASE::GetNext ( nsISupports **  aResult)
nsISupports nsISimpleEnumerator::getNext ( ) [inherited]

Called to retrieve the next element in the enumerator.

The "next" element is the first element upon the first call. Must be pre-ceeded by a call to hasMoreElements() which returns PR_TRUE. This method is generally called within a loop to iterate over the elements in the enumerator.

See also:
hasMoreElements()
Returns:
NS_OK if the call succeeded in returning a non-null value through the out parameter. NS_ERROR_FAILURE if there are no more elements to enumerate.
the next element in the enumeration.

Here is the caller graph for this function:

the number of new messages since this folder was last visited

Parameters:
deepif true, descends into all subfolders and gets a grand total
long nsIMsgFolder::getNumUnread ( in boolean  deep) [inherited]

get the total number of unread messages in this folder, or in all subfolders

Parameters:
deepif true, descends into all subfolders and gets a grand total
nsIInputStream nsIMsgFolder::getOfflineFileStream ( in nsMsgKey  msgKey,
out PRUint32  offset,
out PRUint32  size 
) [inherited]

Definition at line 82 of file nsMsgGroupRecord.h.

{return m_parent;}
const char* NS_MSG_BASE::GetPartName ( ) [inline]

Definition at line 90 of file nsMsgGroupRecord.h.

{return m_partname;}
string nsIMsgIncomingServer::getPasswordWithUI ( in wstring  aPromptString,
in wstring  aPromptTitle,
in nsIMsgWindow  aMsgWindow,
out boolean  okayValue 
) [inherited]
char* NS_MSG_BASE::getPrefName ( const char *  identityKey,
const char *  pref 
) [protected]
void NS_MSG_BASE::getPrefName ( const char *  serverKey,
const char *  pref,
nsCString fullPrefName 
) [protected]
NS_IMETHOD NS_MSG_BASE::GetPrefPassword ( char **  aPassword) [protected]
const char* NS_MSG_BASE::GetPrettyName ( ) [inline]

Definition at line 95 of file nsMsgGroupRecord.h.

{return m_prettyname;}
nsresult NS_MSG_BASE::GetPromptDialogFromUrl ( nsIMsgMailNewsUrl aMsgUrl,
nsIPrompt **  aPromptDialog 
) [protected]
nsresult NS_MSG_BASE::GetPurgeThreshold ( PRInt32 aThreshold) [protected]
AUTF8String nsIURL::getRelativeSpec ( in nsIURI  aURIToCompare) [inherited]

This method takes a uri and returns a substring of this if it can be made relative to the uri passed in.

If no commonality is found, the entire uri spec is returned. If they are identical, "" is returned. Filename, query, etc are always returned except when uris are identical.

nsIStreamListener nsIMsgMailNewsUrl::getSaveAsListener ( in boolean  addDummyEnvelope,
in nsIFileSpec  aFileSpec 
) [inherited]

Definition at line 84 of file nsMsgGroupRecord.h.

{return m_sibling;}

Definition at line 51 of file nsMsgLineBuffer.h.

{return m_bufferSize;}
void nsIMsgFolder::getSortKey ( out octet_ptr  key,
out unsigned long  length 
) [inherited]
nsresult NS_MSG_BASE::GetStringFromBundle ( const char *  msgName,
PRUnichar **  aResult 
) [protected]
string nsIMsgFolder::getStringProperty ( in string  propertyName) [inherited]
wstring nsIMsgFolder::getStringWithFolderNameFromBundle ( in string  msgName) [inherited]

Here is the caller graph for this function:

get the total number of messages in this folder, or in all subfolders

Parameters:
deepif true, descends into all subfolders and gets a grand total
wstring nsIMsgIdentity::getUnicharAttribute ( in string  name) [inherited]

these generic getter / setters, useful for extending mailnews note, these attributes persist across sessions

wstring nsIMsgIncomingServer::getUnicharAttribute ( in string  name) [inherited]

these generic getter / setters, useful for extending mailnews note, these attributes persist across sessions

nsresult NS_MSG_BASE::getUnicharPref ( const char *  pref,
PRUnichar **   
) [protected]
wstring nsIMsgIncomingServer::getUnicharValue ( in string  attr) [inherited]

Definition at line 133 of file nsMsgGroupRecord.h.

{return m_uniqueId;}
void nsIMsgMailNewsUrl::GetUrlState ( out boolean  runningUrl) [inherited]
virtual const char* NS_MSG_BASE::GetUserName ( ) [protected, pure virtual]
NS_IMETHODIMP nsRDFResource::GetValue ( char **  aURI) [inherited]

Definition at line 129 of file nsRDFResource.cpp.

{
    NS_ASSERTION(aURI, "Null out param.");
    
    *aURI = ToNewCString(mURI);

    if (!*aURI)
        return NS_ERROR_OUT_OF_MEMORY;

    return NS_OK;
}

Here is the call graph for this function:

void nsIRDFResource::GetValueConst ( [shared] out string  aConstValue) [inherited]

An unscriptable version used to avoid a string copy.

Meant for use as a performance optimization. The string is encoded in UTF-8.

NS_IMETHODIMP nsRDFResource::GetValueConst ( const char **  aURI) [inherited]

Definition at line 149 of file nsRDFResource.cpp.

{
    *aURI = mURI.get();
    return NS_OK;
}

Here is the call graph for this function:

NS_IMETHODIMP nsRDFResource::GetValueUTF8 ( nsACString &  aResult) [inherited]

Definition at line 142 of file nsRDFResource.cpp.

{
    aResult = mURI;
    return NS_OK;
}
static int NS_MSG_BASE::GroupNameCompare ( const char *  name1,
const char *  name2,
char  delimiter = '.',
PRBool  caseInsensitive = PR_FALSE 
) [static]
PRBool NS_MSG_BASE::Grow ( ) [protected]
nsresult NS_MSG_BASE::GrowBuffer ( PRUint32  desired_size,
PRUint32  quantum = 1024 
)
virtual PRInt32 NS_MSG_BASE::HandleLine ( char *  line,
PRUint32  line_length 
) [pure virtual]
virtual PRInt32 NS_MSG_BASE::HandleLine ( char *  line,
PRUint32  line_length 
) [virtual]

Called to determine whether or not the enumerator has any elements that can be returned via getNext().

This method is generally used to determine whether or not to initiate or continue iteration over the enumerator, though it can be called without subsequent getNext() calls. Does not affect internal state of enumerator.

See also:
getNext()
Returns:
PR_TRUE if there are remaining elements in the enumerator. PR_FALSE if there are no more elements in the enumerator.

Here is the caller graph for this function:

Definition at line 69 of file nsImapMoveCoalescer.h.

void nsIRDFResource::Init ( in string  uri) [inherited]

This method is called by the nsIRDFService after constructing a resource object to initialize it's URI.

You would not normally call this method directly

Reimplemented from nsRDFResource.

virtual nsresult NS_MSG_BASE::InitFromURI ( nsIURI aUrl) [protected, virtual]
virtual void NS_MSG_BASE::InitializeSibling ( ) [virtual]
static nsresult NS_MSG_BASE::initializeStrings ( ) [static, protected]
void NS_MSG_BASE::InsertAt ( PRUint32  nIndex,
nsMsgKey  key,
int  nCount = 1 
) [inline]

Definition at line 72 of file nsMsgKeyArray.h.

                                                                    {
         nsUInt32Array::InsertAt(nIndex, (PRUint32)key, nCount);
       }

Here is the caller graph for this function:

void NS_MSG_BASE::InsertAt ( PRUint32  nIndex,
const nsMsgKeyArray idArray 
) [inline]

Definition at line 75 of file nsMsgKeyArray.h.

                                                                    {
         nsUInt32Array::InsertAt(nIndex, idArray);
       }

Here is the call graph for this function:

nsresult NS_MSG_BASE::InsertAt ( PRInt32  nIndex,
PRUint8  newElement,
PRInt32  nCount = 1 
)
nsresult NS_MSG_BASE::InsertAt ( PRInt32  nStartIndex,
nsUint8Array pNewArray 
)
void NS_MSG_BASE::InsertAt ( PRUint32  nIndex,
PRUint32  newElement,
PRUint32  nCount = 1 
)
void NS_MSG_BASE::InsertAt ( PRUint32  nStartIndex,
const nsUInt32Array pNewArray 
)
nsresult NS_MSG_BASE::InternalSetHostName ( const char *  aHostname,
const char *  prefName 
) [protected]
virtual PRBool NS_MSG_BASE::IsCategory ( ) [virtual]
boolean nsIMsgFolder::isCommandEnabled ( in string  command) [inherited]
virtual PRBool NS_MSG_BASE::IsGroup ( ) [virtual]
virtual PRBool NS_MSG_BASE::IsIMAPGroupRecord ( ) [inline, virtual]

Definition at line 65 of file nsMsgGroupRecord.h.

{ return PR_FALSE; }
boolean nsIRequest::isPending ( ) [inherited]

Indicates whether the request is pending.

nsIRequest::isPending is true when there is an outstanding asynchronous event that will make the request no longer be pending. Requests do not necessarily start out pending; in some cases, requests have to be explicitly initiated (e.g. nsIChannel implementations are only pending once asyncOpen returns successfully).

Requests can become pending multiple times during their lifetime.

Returns:
TRUE if the request has yet to reach completion.
FALSE if the request has reached completion (e.g., after OnStopRequest has fired).
Note:
Suspended requests are still considered pending.
boolean nsIMsgMailNewsUrl::IsUrlType ( in unsigned long  type) [inherited]
int NS_MSG_BASE::LastMissingRange ( PRInt32  min,
PRInt32  max,
PRInt32 first,
PRInt32 last 
)
void nsIMsgFolder::ListDescendents ( in nsISupportsArray  descendents) [inherited]
NS_DECL_ISUPPORTS NS_DECL_NSICHANNEL NS_DECL_NSIREQUEST NS_DECL_NSISTREAMLISTENER NS_DECL_NSIREQUESTOBSERVER virtual NS_DECL_NSITRANSPORTEVENTSINK nsresult NS_MSG_BASE::LoadUrl ( nsIURI aURL,
nsISupports *  aConsumer = nsnull 
) [virtual]
void nsIMsgFolder::markMessagesFlagged ( in nsISupportsArray  messages,
in boolean  markFlagged 
) [inherited]
void nsIMsgFolder::markMessagesRead ( in nsISupportsArray  messages,
in boolean  markRead 
) [inherited]
NS_IMETHOD NS_MSG_BASE::MatchName ( nsString name,
PRBool matches 
)
boolean nsIMsgFolder::matchOrChangeFilterDestination ( in nsIMsgFolder  folder,
in boolean  caseInsensitive 
) [inherited]
NS_IMETHOD NS_MSG_BASE::Merge ( nsITransaction aTransaction,
PRBool aDidMerge 
) [private]
boolean nsITransaction::merge ( in nsITransaction  aTransaction) [inherited]

Attempts to merge a transaction into "this" transaction.

Both transactions must be in their undo state, doTransaction() methods already called. The transaction manager calls this method to coalesce a new transaction with the transaction on the top of the undo stack. This method returns a boolean value that indicates the merge result. A true value indicates that the transactions were merged successfully, a false value if the merge was not possible or failed. If true, the transaction manager will Release() the new transacton instead of pushing it on the undo stack.

Parameters:
aTransactionthe previously executed transaction to merge.
nsresult NS_MSG_BASE::MsgFitsDownloadCriteria ( nsMsgKey  msgKey,
PRBool result 
) [protected]
void nsIMsgFolder::NotifyBoolPropertyChanged ( in nsIAtom  property,
in boolean  oldValue,
in boolean  newValue 
) [inherited]

Here is the caller graph for this function:

void nsIMsgFolder::NotifyIntPropertyChanged ( in nsIAtom  property,
in long  oldValue,
in long  newValue 
) [inherited]
void nsIMsgFolder::NotifyItemAdded ( in nsISupports  item) [inherited]
void nsIMsgFolder::NotifyItemRemoved ( in nsISupports  item) [inherited]
void nsIMsgFolder::NotifyPropertyChanged ( in nsIAtom  property,
in string  oldValue,
in string  newValue 
) [inherited]
void nsIMsgFolder::NotifyPropertyFlagChanged ( in nsIMsgDBHdr  item,
in nsIAtom  property,
in unsigned long  oldValue,
in unsigned long  newValue 
) [inherited]
void nsIMsgFolder::NotifyUnicharPropertyChanged ( in nsIAtom  property,
in wstring  oldValue,
in wstring  newValue 
) [inherited]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsrefcnt  ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsrefcnt  ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( PRUnichar ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( PRUnichar ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( PRUnichar ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( PRUnichar ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( PRUnichar ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( PRUnichar ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( PRUnichar ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( PRUnichar ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsIAtom ) [static, protected]
static NS_MSG_BASE::NS_MSG_BASE_STATIC_MEMBER_ ( nsICollation ) [static, protected]
NS_DECL_ISUPPORTS NS_DECL_NSIURLLISTENER NS_MSG_BASE::nsImapMoveCoalescer ( nsIMsgFolder sourceFolder,
nsIMsgWindow msgWindow 
)
NS_MSG_BASE::nsLocalFolderSummarySpec ( const char *  folderPath,
PRBool  create = PR_FALSE 
)
NS_MSG_BASE::nsLocalFolderSummarySpec ( const nsFilePath &  inFolderPath,
PRBool  create = PR_FALSE 
)
NS_MSG_BASE::nsMsgGroupRecord ( nsMsgGroupRecord parent,
const char *  partname,
PRInt64  m_addtime,
PRInt32  uniqueid,
PRInt32  fileoffset,
char  delimiter = '.' 
) [protected]

Definition at line 53 of file nsMsgKeyArray.h.

NS_MSG_BASE::nsMsgKeySet ( ) [protected]
NS_MSG_BASE::nsMsgKeySet ( const char *  ) [protected]
NS_MSG_BASE::nsMsgLineBuffer ( nsMsgLineBufferHandler *  handler,
PRBool  convertNewlinesP 
)
NS_MSG_BASE::nsMsgLineBuffer ( PRBool  convertNewlinesP) [protected]
NS_MSG_BASE::nsMsgLineStreamBuffer ( PRUint32  aBufferSize,
PRBool  aAllocateNewLines,
PRBool  aEatCRLFs = PR_TRUE,
char  aLineToken = '\n' 
)
NS_MSG_BASE::nsNewsSummarySpec ( const char *  folderPath)
NS_MSG_BASE::nsNewsSummarySpec ( const nsFilePath &  inFolderPath)

Here is the caller graph for this function:

void nsIStreamListener::onDataAvailable ( in nsIRequest  aRequest,
in nsISupports  aContext,
in nsIInputStream  aInputStream,
in unsigned long  aOffset,
in unsigned long  aCount 
) [inherited]

Called when the next chunk of data (corresponding to the request) may be read without blocking the calling thread.

The onDataAvailable impl must read exactly |aCount| bytes of data before returning.

Parameters:
aRequestrequest corresponding to the source of the data
aContextuser defined context
aInputStreaminput stream containing the data chunk
aOffsetNumber of bytes that were sent in previous onDataAvailable calls for this request. In other words, the sum of all previous count parameters. If that number is greater than or equal to 2^32, this parameter will be PR_UINT32_MAX (2^32 - 1).
aCountnumber of bytes available in the stream

NOTE: The aInputStream parameter must implement readSegments.

An exception thrown from onDataAvailable has the side-effect of causing the request to be canceled.

void nsIMsgFolder::onFlagChange ( in unsigned long  flag) [inherited]
void nsIDBChangeListener::onHdrAdded ( in nsIMsgDBHdr  aHdrChanged,
in nsMsgKey  aParentKey,
in long  aFlags,
in nsIDBChangeListener  aInstigator 
) [inherited]
nsresult NS_MSG_BASE::OnHdrAddedOrDeleted ( nsIMsgDBHdr hdrChanged,
PRBool  added 
) [protected]
void nsIDBChangeListener::onHdrChange ( in nsIMsgDBHdr  aHdrChanged,
in unsigned long  aOldFlags,
in unsigned long  aNewFlags,
in nsIDBChangeListener  aInstigator 
) [inherited]
void nsIDBChangeListener::onHdrDeleted ( in nsIMsgDBHdr  aHdrChanged,
in nsMsgKey  aParentKey,
in long  aFlags,
in nsIDBChangeListener  aInstigator 
) [inherited]
void nsIDBChangeListener::onParentChanged ( in nsMsgKey  aKeyChanged,
in nsMsgKey  oldParent,
in nsMsgKey  newParent,
in nsIDBChangeListener  aInstigator 
) [inherited]
void nsIRequestObserver::onStartRequest ( in nsIRequest  aRequest,
in nsISupports  aContext 
) [inherited]

Called to signify the beginning of an asynchronous request.

Parameters:
aRequestrequest being observed
aContextuser defined context

An exception thrown from onStartRequest has the side-effect of causing the request to be canceled.

Here is the caller graph for this function:

Here is the caller graph for this function:

void nsIRequestObserver::onStopRequest ( in nsIRequest  aRequest,
in nsISupports  aContext,
in nsresult  aStatusCode 
) [inherited]

Called to signify the end of an asynchronous request.

This call is always preceded by a call to onStartRequest.

Parameters:
aRequestrequest being observed
aContextuser defined context
aStatusCodereason for stopping (NS_OK if completed successfully)

An exception thrown from onStopRequest is generally ignored.

Here is the caller graph for this function:

void nsIUrlListener::OnStopRunningUrl ( in nsIURI  url,
in nsresult  aExitCode 
) [inherited]

Here is the caller graph for this function:

void nsITransportEventSink::onTransportStatus ( in nsITransport  aTransport,
in nsresult  aStatus,
in unsigned long long  aProgress,
in unsigned long long  aProgressMax 
) [inherited]

Transport status notification.

Parameters:
aTransportthe transport sending this status notification.
aStatusthe transport status (resolvable to a string using nsIErrorService). See nsISocketTransport for socket specific status codes and more comments.
aProgressthe amount of data either read or written depending on the value of the status code. this value is relative to aProgressMax.
aProgressMaxthe maximum amount of data that will be read or written. if unknown, 0xFFFFFFFF will be passed.
void nsIMsgIncomingServer::OnUserOrHostNameChanged ( in string  oldName,
in string  newName 
) [inherited]

Synchronously open the channel.

Returns:
blocking input stream to the channel's data.

NOTE: nsIChannel implementations are not required to implement this method. Moreover, since this method may block the calling thread, it should not be called on a thread that processes UI events.

virtual nsresult NS_MSG_BASE::OpenFileSocket ( nsIURI aURL,
PRUint32  aStartPosition,
PRInt32  aReadCount 
) [protected, virtual]
virtual nsresult NS_MSG_BASE::OpenNetworkSocket ( nsIURI aURL,
const char *  connectionType,
nsIInterfaceRequestor callbacks 
) [protected, virtual]
virtual nsresult NS_MSG_BASE::OpenNetworkSocketWithInfo ( const char *  aHostName,
PRInt32  aGetPort,
const char *  connectionType,
nsIProxyInfo aProxyInfo,
nsIInterfaceRequestor callbacks 
) [protected, virtual]
nsMsgKey NS_MSG_BASE::operator[] ( PRUint32  nIndex) const [inline]

Definition at line 57 of file nsMsgKeyArray.h.

                                                  {
         return((nsMsgKey)nsUInt32Array::operator[](nIndex));
       }
PRUint8 NS_MSG_BASE::operator[] ( PRInt32  nIndex) const
PRUint8& NS_MSG_BASE::operator[] ( PRInt32  nIndex)
PRUint32 NS_MSG_BASE::operator[] ( PRUint32  nIndex) const [inline]

Definition at line 92 of file nsUInt32Array.h.

{ return GetAt(nIndex); }

Here is the call graph for this function:

PRUint32& NS_MSG_BASE::operator[] ( PRUint32  nIndex) [inline]

Definition at line 93 of file nsUInt32Array.h.

{ return ElementAt(nIndex); }

Here is the call graph for this function:

PRBool NS_MSG_BASE::Optimize ( ) [protected]
nsresult NS_MSG_BASE::Output ( char **  outputStr)
nsresult NS_MSG_BASE::parseURI ( PRBool  needServer = PR_FALSE) [protected]
nsresult NS_MSG_BASE::PlaybackMoves ( PRBool  doNewMailNotification = PR_FALSE)
virtual nsresult NS_MSG_BASE::PostMessage ( nsIURI url,
nsIFileSpec fileSpec 
) [protected, virtual]
virtual nsresult NS_MSG_BASE::PostMessage ( nsIURI url,
nsIFileSpec fileSpec 
) [virtual]
virtual nsresult NS_MSG_BASE::ProcessProtocolState ( nsIURI url,
nsIInputStream inputStream,
PRUint32  sourceOffset,
PRUint32  length 
) [protected, pure virtual]
nsresult NS_MSG_BASE::PromptForCachePassword ( nsIMsgIncomingServer server,
nsIMsgWindow aWindow,
PRBool passwordCorrect 
) [protected]
void nsIMsgFolder::propagateDelete ( in nsIMsgFolder  folder,
in boolean  deleteStorage,
in nsIMsgWindow  msgWindow 
) [inherited]
void nsICollection::QueryElementAt ( in PRUint32  index,
in nsIIDRef  uuid,
[iid_is(uuid), retval] out nsQIResult  result 
) [inherited]

Here is the caller graph for this function:

void NS_MSG_BASE::QuickSort ( int(*)(const void *elem1, const void *elem2, void *)  compare = NULL)
void nsISerializable::read ( in nsIObjectInputStream  aInputStream) [inherited]

Initialize the object implementing nsISerializable, which must have been freshly constructed via CreateInstance.

All data members that can't be set to default values must have been serialized by write, and should be read from aInputStream in the same order by this method.

virtual nsresult NS_MSG_BASE::ReadDBFolderInfo ( PRBool  force) [protected, virtual]
char* NS_MSG_BASE::ReadNextLine ( nsIInputStream aInputStream,
PRUint32 anumBytesInLine,
PRBool aPauseForMoreData,
nsresult rv = nsnull,
PRBool  addLineTerminator = PR_FALSE 
)
void nsIMsgFolder::recursiveDelete ( in boolean  deleteStorage,
in nsIMsgWindow  msgWindow 
) [inherited]

Executes the transaction again.

Can only be called on a transaction that was previously undone.

In most cases, the redoTransaction() method will actually call the doTransaction() method to execute the transaction again.

NS_IMETHOD NS_MSG_BASE::RedoTransaction ( void  ) [private, pure virtual]
NS_IMETHODIMP nsRDFResource::ReleaseDelegate ( const char *  aKey) [inherited]

Definition at line 228 of file nsRDFResource.cpp.

{
    NS_PRECONDITION(aKey != nsnull, "null ptr");
    if (! aKey)
        return NS_ERROR_NULL_POINTER;

    DelegateEntry* entry = mDelegates;
    DelegateEntry** link = &mDelegates;

    while (entry) {
        if (entry->mKey.Equals(aKey)) {
            *link = entry->mNext;
            delete entry;
            return NS_OK;
        }

        link = &(entry->mNext);
        entry = entry->mNext;
    }

    NS_WARNING("nsRDFResource::ReleaseDelegate() no delegate found");
    return NS_OK;
}

Force a delegate to be "unbound" from the resource.

Normally, a delegate object's lifetime will be identical to that of the resource to which it is bound; this method allows a delegate to unlink itself from an RDF resource prematurely.

void nsIMsgFolder::releaseSemaphore ( in nsISupports  semHolder) [inherited]
void NS_MSG_BASE::RemoveAt ( PRInt32  nIndex,
PRInt32  nCount = 1 
)
void NS_MSG_BASE::RemoveAt ( PRUint32  nIndex,
PRUint32  nCount = 1 
)
void nsICollection::RemoveElement ( in nsISupports  item) [inherited]

Here is the caller graph for this function:

this is also very dangerous.

this will remove the files associated with this server on disk.

Here is the caller graph for this function:

void nsIMsgFolder::removeKeywordsFromMessages ( in nsISupportsArray  aMessages,
in string  aKeywords 
) [inherited]
void nsIMsgFolder::rename ( in wstring  name,
in nsIMsgWindow  msgWindow 
) [inherited]

change the name of the folder

Parameters:
namethe new name of the folder
void nsIMsgFolder::renameSubFolders ( in nsIMsgWindow  msgWindow,
in nsIMsgFolder  oldFolder 
) [inherited]

Definition at line 56 of file nsMsgLineBuffer.h.

{m_bufferPos = 0;}
AUTF8String nsIURI::resolve ( in AUTF8String  relativePath) [inherited]

This method resolves a relative string into an absolute URI string, using this URI as the base.

NOTE: some implementations may have no concept of a relative URI.

void nsIRequest::resume ( ) [inherited]

Resumes the current request.

This may have the effect of re-opening any underlying transport and will resume the delivery of data to any open streams.

boolean nsIURI::schemeIs ( in string  scheme) [inherited]

An optimization to do scheme checks without requiring the users of nsIURI to GetScheme, thereby saving extra allocating and freeing.

Returns true if the schemes match (case ignored).

virtual PRInt32 NS_MSG_BASE::SendData ( nsIURI aURL,
const char *  dataBuffer,
PRBool  aSuppressLogging = PR_FALSE 
) [protected, virtual]
virtual PRInt32 NS_MSG_BASE::SendData ( nsIURI aURL,
const char *  dataBuffer,
PRBool  aSuppressLogging = PR_FALSE 
) [virtual]
virtual nsresult NS_MSG_BASE::SendFlagNotifications ( nsIMsgDBHdr item,
PRUint32  oldFlags,
PRUint32  newFlags 
) [protected, virtual]
void NS_MSG_BASE::SetArray ( nsMsgKey pData,
int  numElements,
int  numAllocated 
)
void NS_MSG_BASE::SetAt ( PRUint32  nIndex,
nsMsgKey  key 
) [inline]

Definition at line 66 of file nsMsgKeyArray.h.

void NS_MSG_BASE::SetAt ( PRInt32  nIndex,
PRUint8  newElement 
)
void NS_MSG_BASE::SetAt ( PRUint32  nIndex,
PRUint32  newElement 
)
void NS_MSG_BASE::SetAtGrow ( PRUint32  nIndex,
nsMsgKey  key 
) [inline]

Definition at line 69 of file nsMsgKeyArray.h.

void NS_MSG_BASE::SetAtGrow ( PRInt32  nIndex,
PRUint8  newElement 
)
void NS_MSG_BASE::SetAtGrow ( PRUint32  nIndex,
PRUint32  newElement 
)
void nsIMsgIdentity::setBoolAttribute ( in string  name,
in boolean  value 
) [inherited]
void nsIMsgIncomingServer::setBoolAttribute ( in string  name,
in boolean  value 
) [inherited]