Back to index

lightning-sunbird  0.9+nobinonly
Functions | Variables
nsLocalMailFolder.cpp File Reference
#include "nsIPrefService.h"
#include "nsIPrefBranch.h"
#include "prlog.h"
#include "msgCore.h"
#include "nsLocalMailFolder.h"
#include "nsMsgLocalFolderHdrs.h"
#include "nsMsgFolderFlags.h"
#include "nsMsgMessageFlags.h"
#include "prprf.h"
#include "nsISupportsArray.h"
#include "nsIServiceManager.h"
#include "nsIEnumerator.h"
#include "nsIMailboxService.h"
#include "nsParseMailbox.h"
#include "nsIMsgAccountManager.h"
#include "nsIMsgWindow.h"
#include "nsCOMPtr.h"
#include "nsIRDFService.h"
#include "nsIRDFDataSource.h"
#include "nsRDFCID.h"
#include "nsFileStream.h"
#include "nsMsgDBCID.h"
#include "nsMsgUtils.h"
#include "nsLocalUtils.h"
#include "nsIPop3IncomingServer.h"
#include "nsILocalMailIncomingServer.h"
#include "nsIMsgIncomingServer.h"
#include "nsMsgBaseCID.h"
#include "nsMsgLocalCID.h"
#include "nsString.h"
#include "nsIMsgFolderCacheElement.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"
#include "nsLocalFolderSummarySpec.h"
#include "nsICopyMsgStreamListener.h"
#include "nsIMsgCopyService.h"
#include "nsLocalUndoTxn.h"
#include "nsMsgTxn.h"
#include "nsIFileSpec.h"
#include "nsIMessenger.h"
#include "nsNativeCharsetUtils.h"
#include "nsIDocShell.h"
#include "nsIPrompt.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsIPop3URL.h"
#include "nsIMsgMailSession.h"
#include "nsIMsgFolderCompactor.h"
#include "nsNetCID.h"
#include "nsEscape.h"
#include "nsLocalStringBundle.h"
#include "nsIMsgMailNewsUrl.h"
#include "nsISpamSettings.h"
#include "nsINoIncomingServer.h"
#include "nsMailHeaders.h"
#include "nsCOMArray.h"
#include "nsILineInputStream.h"
#include "nsIFileStreams.h"
#include "nsAutoPtr.h"
#include "nsIRssIncomingServer.h"
#include "nsNetUtil.h"
#include "nsIMsgFolderNotificationService.h"

Go to the source code of this file.

Functions

static NS_DEFINE_CID (kMailboxServiceCID, NS_MAILBOXSERVICE_CID)
static NS_DEFINE_CID (kCMailDB, NS_MAILDB_CID)
 NS_IMPL_ISUPPORTS_INHERITED3 (nsMsgLocalMailFolder, nsMsgDBFolder, nsICopyMessageListener, nsIMsgLocalMailFolder, nsIJunkMailClassificationListener) static PRBool nsStringEndsWith(nsString &name
 if (len==0) return PR_FALSE
 return (len > endingLen &&name.RFind(ending, PR_TRUE)==len-endingLen)
static PRBool nsShouldIgnoreFile (nsString &name)

Variables

const char *ending PRInt32 len = name.Length()
PRInt32 endingLen = strlen(ending)
static PRBool gGotGlobalPrefs
static PRBool gDeleteFromServerOnMove

Function Documentation

if ( len  = =0)
static NS_DEFINE_CID ( kMailboxServiceCID  ,
NS_MAILBOXSERVICE_CID   
) [static]
static NS_DEFINE_CID ( kCMailDB  ,
NS_MAILDB_CID   
) [static]
static PRBool nsShouldIgnoreFile ( nsString name) [static]

Definition at line 195 of file nsLocalMailFolder.cpp.

{
  PRUnichar firstChar=name.CharAt(0);
  if (firstChar == '.' || firstChar == '#' || name.CharAt(name.Length() - 1) == '~')
    return PR_TRUE;

  if (name.LowerCaseEqualsLiteral("msgfilterrules.dat") ||
      name.LowerCaseEqualsLiteral("rules.dat") || 
      name.LowerCaseEqualsLiteral("filterlog.html") || 
      name.LowerCaseEqualsLiteral("junklog.html") || 
      name.LowerCaseEqualsLiteral("rulesbackup.dat"))
    return PR_TRUE;


  // don't add summary files to the list of folders;
  // don't add popstate files to the list either, or rules (sort.dat). 
  if (nsStringEndsWith(name, ".snm") ||
      name.LowerCaseEqualsLiteral("popstate.dat") ||
      name.LowerCaseEqualsLiteral("sort.dat") ||
      name.LowerCaseEqualsLiteral("mailfilt.log") ||
      name.LowerCaseEqualsLiteral("filters.js") ||
      nsStringEndsWith(name, ".toc"))
    return PR_TRUE;

  // ignore RSS data source files
  if (name.LowerCaseEqualsLiteral("feeds.rdf") ||
      name.LowerCaseEqualsLiteral("feeditems.rdf"))
    return PR_TRUE;

  // The .mozmsgs dir is for spotlight support
    return (nsStringEndsWith(name, ".mozmsgs") || nsStringEndsWith(name,".sbd") ||
            nsStringEndsWith(name,".msf"));
}

Here is the call graph for this function:

Here is the caller graph for this function:

return ( len  ,
endingLen &&name.  RFindending, PR_TRUE = =len-endingLen 
)

Variable Documentation

PRInt32 endingLen = strlen(ending)

Definition at line 190 of file nsLocalMailFolder.cpp.

Definition at line 2782 of file nsLocalMailFolder.cpp.

Definition at line 2781 of file nsLocalMailFolder.cpp.

const char* ending PRInt32 len = name.Length()

Definition at line 187 of file nsLocalMailFolder.cpp.