Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsMessengerMigrator.cpp File Reference
#include "nsIComponentManager.h"
#include "nsIServiceManager.h"
#include "nsISupportsArray.h"
#include "nsSupportsPrimitives.h"
#include "nsNetUtil.h"
#include "prmem.h"
#include "plstr.h"
#include "prprf.h"
#include "nsString.h"
#include "nsXPIDLString.h"
#include "nscore.h"
#include "nsCRT.h"
#include "nsFileStream.h"
#include "nsIDirectoryService.h"
#include "nsDirectoryServiceDefs.h"
#include "nsAppDirectoryServiceDefs.h"
#include "nsIFileSpec.h"
#include "nsILocalFile.h"
#include "nsIURL.h"
#include "nsNetCID.h"
#include "nsIStringBundle.h"
#include "nsMessengerMigrator.h"
#include "nsMsgBaseCID.h"
#include "nsMsgCompCID.h"
#include "nsIMsgFolderCache.h"
#include "nsMsgUtils.h"
#include "nsISmtpService.h"
#include "nsIObserverService.h"
#include "nsIMsgAccount.h"
#include "nsIMsgAccountManager.h"
#include "nsIPop3IncomingServer.h"
#include "nsIImapIncomingServer.h"
#include "nsINntpIncomingServer.h"
#include "nsINoIncomingServer.h"
#include "nsIMsgProtocolInfo.h"
#include "nsEscape.h"
#include "nsIUserInfo.h"
#include "nsIAbUpgrader.h"
#include "nsIAddressBook.h"
#include "nsAbBaseCID.h"
#include "nsIMsgFilterService.h"
#include "nsIMsgFilterList.h"

Go to the source code of this file.

Defines

#define BUF_STR_LEN   1024
#define IMAP_SCHEMA   "imap:/"
#define IMAP_SCHEMA_LENGTH   6
#define MAILBOX_SCHEMA   "mailbox:/"
#define MAILBOX_SCHEMA_LENGTH   9
#define POP_4X_MAIL_TYPE   0
#define IMAP_4X_MAIL_TYPE   1
#define PREF_NEWS_DIRECTORY   "news.directory"
#define PREF_MAIL_DIRECTORY   "mail.directory"
#define PREF_PREMIGRATION_MAIL_DIRECTORY   "premigration.mail.directory"
#define PREF_PREMIGRATION_NEWS_DIRECTORY   "premigration.news.directory"
#define PREF_IMAP_DIRECTORY   "mail.imap.root_dir"
#define PREF_MAIL_DEFAULT_SENDLATER_URI   "mail.default_sendlater_uri"
#define LOCAL_MAIL_FAKE_USER_NAME   "nobody"
#define DEFAULT_4X_DRAFTS_FOLDER_NAME   "Drafts"
#define DEFAULT_4X_SENT_FOLDER_NAME   "Sent"
#define DEFAULT_4X_TEMPLATES_FOLDER_NAME   "Templates"
#define UNSENT_MESSAGES_FOLDER_NAME   "Unsent%20Messages"
#define FILTER_FILE_NAME   "msgFilterRules.dat" /* this is XP in 5.x */
#define PREF_4X_MAIL_IDENTITY_USEREMAIL   "mail.identity.useremail"
#define PREF_4X_MAIL_IDENTITY_USERNAME   "mail.identity.username"
#define PREF_4X_MAIL_IDENTITY_REPLY_TO   "mail.identity.reply_to"
#define PREF_4X_MAIL_IDENTITY_ORGANIZATION   "mail.identity.organization"
#define PREF_4X_MAIL_SIGNATURE_FILE   "mail.signature_file"
#define PREF_4X_MAIL_SIGNATURE_DATE   "mail.signature_date"
#define PREF_4X_MAIL_COMPOSE_HTML   "mail.html_compose"
#define PREF_4X_MAIL_POP_NAME   "mail.pop_name"
#define PREF_4X_MAIL_REMEMBER_PASSWORD   "mail.remember_password"
#define PREF_4X_MAIL_POP_PASSWORD   "mail.pop_password"
#define PREF_4X_NETWORK_HOSTS_POP_SERVER   "network.hosts.pop_server"
#define PREF_4X_MAIL_CHECK_NEW_MAIL   "mail.check_new_mail"
#define PREF_4X_MAIL_POP3_GETS_NEW_MAIL   "mail.pop3_gets_new_mail"
#define PREF_4X_MAIL_CHECK_TIME   "mail.check_time"
#define PREF_4X_MAIL_LEAVE_ON_SERVER   "mail.leave_on_server"
#define PREF_4X_MAIL_DELETE_MAIL_LEFT_ON_SERVER   "mail.delete_mail_left_on_server"
#define PREF_4X_NETWORK_HOSTS_SMTP_SERVER   "network.hosts.smtp_server"
#define PREF_4X_MAIL_SMTP_NAME   "mail.smtp_name"
#define PREF_4X_MAIL_SMTP_SSL   "mail.smtp.ssl"
#define PREF_4X_MAIL_SERVER_TYPE   "mail.server_type"
#define PREF_4X_NETWORK_HOSTS_IMAP_SERVER   "network.hosts.imap_servers"
#define PREF_4X_MAIL_USE_IMAP_SENTMAIL   "mail.use_imap_sentmail"
#define PREF_4X_NEWS_USE_IMAP_SENTMAIL   "news.use_imap_sentmail"
#define PREF_4X_MAIL_IMAP_SENTMAIL_PATH   "mail.imap_sentmail_path"
#define PREF_4X_NEWS_IMAP_SENTMAIL_PATH   "news.imap_sentmail_path"
#define PREF_4X_MAIL_DEFAULT_CC   "mail.default_cc"
#define PREF_4X_NEWS_DEFAULT_CC   "news.default_cc"
#define PREF_4X_MAIL_DEFAULT_FCC   "mail.default_fcc"
#define PREF_4X_NEWS_DEFAULT_FCC   "news.default_fcc"
#define PREF_4X_MAIL_USE_DEFAULT_CC   "mail.use_default_cc"
#define PREF_4X_NEWS_USE_DEFAULT_CC   "news.use_default_cc"
#define PREF_4X_MAIL_DEFAULT_DRAFTS   "mail.default_drafts"
#define PREF_4X_MAIL_DEFAULT_TEMPLATES   "mail.default_templates"
#define PREF_4X_MAIL_CC_SELF   "mail.cc_self"
#define PREF_4X_NEWS_CC_SELF   "news.cc_self"
#define PREF_4X_MAIL_USE_FCC   "mail.use_fcc"
#define PREF_4X_NEWS_USE_FCC   "news.use_fcc"
#define PREF_4X_NEWS_MAX_ARTICLES   "news.max_articles"
#define PREF_4X_NEWS_NOTIFY_ON   "news.notify.on"
#define PREF_4X_NEWS_MARK_OLD_READ   "news.mark_old_read"
#define PREF_4X_MAIL_ATTACH_VCARD   "mail.attach_vcard"
#define PREF_4X_MAIL_IDENTITY_VCARD_ROOT   "mail.identity.vcard"
#define PREF_4X_AUTOCOMPLETE_ON_LOCAL_AB   "ldap_2.autoComplete.useAddressBooks"
#define PREF_MOZILLA_AUTOCOMPLETE_ON_LOCAL_AB   "mail.enable_autocomplete"
#define DEFAULT_FCC_FOLDER_PREF_NAME   "mail.identity.default.fcc_folder"
#define DEFAULT_DRAFT_FOLDER_PREF_NAME   "mail.identity.default.draft_folder"
#define DEFAULT_STATIONERY_FOLDER_PREF_NAME   "mail.identity.default.stationery_folder"
#define DEFAULT_PAB_FILENAME_PREF_NAME   "ldap_2.servers.pab.filename"
#define PREF_MIGRATION_MODE_FOR_MAIL   "mail.migration.copyMailFiles"
#define ESCAPE_USER_NAME(outName, inName)   *((char **)getter_Copies(outName)) = nsEscape((const char *)inName, url_XAlphas);
#define ESCAPE_FOLDER_NAME(outName, inName)   *((char **)getter_Copies(outName)) = nsEscape((const char *)inName, url_Path);
#define CONVERT_4X_URI(IDENTITY, FOR_NEWS, USERNAME, HOSTNAME, DEFAULT_FOLDER_NAME, MACRO_GETTER, MACRO_SETTER, DEFAULT_PREF)
#define MIGRATE_SIMPLE_FILE_PREF_TO_BOOL_PREF(PREFNAME, MACRO_OBJECT, MACRO_METHOD)
#define MIGRATE_SIMPLE_FILE_PREF_TO_CHAR_PREF(PREFNAME, MACRO_OBJECT, MACRO_METHOD)
#define MIGRATE_SIMPLE_FILE_PREF_TO_FILE_PREF(PREFNAME, MACRO_OBJECT, MACRO_METHOD)
#define MIGRATE_SIMPLE_STR_PREF(PREFNAME, MACRO_OBJECT, MACRO_METHOD)
#define MIGRATE_SIMPLE_WSTR_PREF(PREFNAME, MACRO_OBJECT, MACRO_METHOD)
#define MIGRATE_SIMPLE_INT_PREF(PREFNAME, MACRO_OBJECT, MACRO_METHOD)
#define MIGRATE_SIMPLE_BOOL_PREF(PREFNAME, MACRO_OBJECT, MACRO_METHOD)
#define MIGRATE_STR_PREF(PREFFORMATSTR, PREFFORMATVALUE, INCOMINGSERVERPTR, INCOMINGSERVERMETHOD)
#define MIGRATE_INT_PREF(PREFFORMATSTR, PREFFORMATVALUE, INCOMINGSERVERPTR, INCOMINGSERVERMETHOD)
#define MIGRATE_BOOL_PREF(PREFFORMATSTR, PREFFORMATVALUE, INCOMINGSERVERPTR, INCOMINGSERVERMETHOD)
#define ADDRESSBOOK_PREF_NAME_ROOT   "ldap_2.servers."
#define ADDRESSBOOK_PREF_NAME_SUFFIX   ".filename"
#define ADDRESSBOOK_PREF_CSID_SUFFIX   ".csid"
#define ADDRESSBOOK_PREF_VALUE_4x_SUFFIX   ".na2"
#define ADDRESSBOOK_PREF_VALUE_5x_SUFFIX   ".mab"
#define TEMP_LDIF_FILE_SUFFIX   ".ldif"
#define NEWSRC_MAP_FILE_COOKIE   "netscape-newsrc-map-file"

Functions

static PRBool charEndsWith (const char *str, const char *endStr)

Define Documentation

Definition at line 1912 of file nsMessengerMigrator.cpp.

#define ADDRESSBOOK_PREF_NAME_ROOT   "ldap_2.servers."

Definition at line 1910 of file nsMessengerMigrator.cpp.

Definition at line 1911 of file nsMessengerMigrator.cpp.

Definition at line 1913 of file nsMessengerMigrator.cpp.

Definition at line 1914 of file nsMessengerMigrator.cpp.

#define BUF_STR_LEN   1024

Definition at line 94 of file nsMessengerMigrator.cpp.

#define CONVERT_4X_URI (   IDENTITY,
  FOR_NEWS,
  USERNAME,
  HOSTNAME,
  DEFAULT_FOLDER_NAME,
  MACRO_GETTER,
  MACRO_SETTER,
  DEFAULT_PREF 
)
Value:
{ \
  nsXPIDLCString macro_oldStr; \
  nsresult macro_rv; \
  macro_rv = IDENTITY->MACRO_GETTER(getter_Copies(macro_oldStr));     \
  if (NS_FAILED(macro_rv) || !macro_oldStr) { \
    IDENTITY->MACRO_SETTER("");    \
  }\
  else {      \
    char *converted_uri = nsnull; \
    macro_rv = Convert4XUri((const char *)macro_oldStr, FOR_NEWS, USERNAME, HOSTNAME, DEFAULT_FOLDER_NAME, DEFAULT_PREF, &converted_uri); \
    if (NS_FAILED(macro_rv)) { \
      IDENTITY->MACRO_SETTER("");  \
    } \
    else { \
      IDENTITY->MACRO_SETTER(converted_uri); \
    } \
    PR_FREEIF(converted_uri); \
  }    \
}

Definition at line 212 of file nsMessengerMigrator.cpp.

Definition at line 125 of file nsMessengerMigrator.cpp.

Definition at line 126 of file nsMessengerMigrator.cpp.

Definition at line 127 of file nsMessengerMigrator.cpp.

#define DEFAULT_DRAFT_FOLDER_PREF_NAME   "mail.identity.default.draft_folder"

Definition at line 180 of file nsMessengerMigrator.cpp.

#define DEFAULT_FCC_FOLDER_PREF_NAME   "mail.identity.default.fcc_folder"

Definition at line 179 of file nsMessengerMigrator.cpp.

#define DEFAULT_PAB_FILENAME_PREF_NAME   "ldap_2.servers.pab.filename"

Definition at line 183 of file nsMessengerMigrator.cpp.

#define DEFAULT_STATIONERY_FOLDER_PREF_NAME   "mail.identity.default.stationery_folder"

Definition at line 181 of file nsMessengerMigrator.cpp.

#define ESCAPE_FOLDER_NAME (   outName,
  inName 
)    *((char **)getter_Copies(outName)) = nsEscape((const char *)inName, url_Path);

Definition at line 208 of file nsMessengerMigrator.cpp.

#define ESCAPE_USER_NAME (   outName,
  inName 
)    *((char **)getter_Copies(outName)) = nsEscape((const char *)inName, url_XAlphas);

Definition at line 205 of file nsMessengerMigrator.cpp.

#define FILTER_FILE_NAME   "msgFilterRules.dat" /* this is XP in 5.x */

Definition at line 130 of file nsMessengerMigrator.cpp.

Definition at line 106 of file nsMessengerMigrator.cpp.

#define IMAP_SCHEMA   "imap:/"

Definition at line 100 of file nsMessengerMigrator.cpp.

Definition at line 101 of file nsMessengerMigrator.cpp.

Definition at line 119 of file nsMessengerMigrator.cpp.

#define MAILBOX_SCHEMA   "mailbox:/"

Definition at line 102 of file nsMessengerMigrator.cpp.

Definition at line 103 of file nsMessengerMigrator.cpp.

#define MIGRATE_BOOL_PREF (   PREFFORMATSTR,
  PREFFORMATVALUE,
  INCOMINGSERVERPTR,
  INCOMINGSERVERMETHOD 
)
Value:
{ \
    nsresult macro_rv; \
    PRBool macro_oldBool; \
    char prefName[BUF_STR_LEN]; \
    PR_snprintf(prefName, BUF_STR_LEN, PREFFORMATSTR, PREFFORMATVALUE); \
    macro_rv = m_prefs->GetBoolPref(prefName, &macro_oldBool); \
    if (NS_SUCCEEDED(macro_rv)) { \
      INCOMINGSERVERPTR->INCOMINGSERVERMETHOD(macro_oldBool); \
    } \
  }

Definition at line 360 of file nsMessengerMigrator.cpp.

#define MIGRATE_INT_PREF (   PREFFORMATSTR,
  PREFFORMATVALUE,
  INCOMINGSERVERPTR,
  INCOMINGSERVERMETHOD 
)
Value:
{ \
    nsresult macro_rv; \
    PRInt32 oldInt; \
    char prefName[BUF_STR_LEN]; \
    PR_snprintf(prefName, BUF_STR_LEN, PREFFORMATSTR, PREFFORMATVALUE); \
    macro_rv = m_prefs->GetIntPref(prefName, &oldInt); \
    if (NS_SUCCEEDED(macro_rv)) { \
      INCOMINGSERVERPTR->INCOMINGSERVERMETHOD(oldInt); \
    } \
  }

Definition at line 348 of file nsMessengerMigrator.cpp.

#define MIGRATE_SIMPLE_BOOL_PREF (   PREFNAME,
  MACRO_OBJECT,
  MACRO_METHOD 
)
Value:
{ \
    nsresult macro_rv; \
    PRBool macro_oldBool; \
    macro_rv = m_prefs->GetBoolPref(PREFNAME, &macro_oldBool); \
    if (NS_SUCCEEDED(macro_rv)) { \
      MACRO_OBJECT->MACRO_METHOD(macro_oldBool); \
    } \
  }

Definition at line 325 of file nsMessengerMigrator.cpp.

#define MIGRATE_SIMPLE_FILE_PREF_TO_BOOL_PREF (   PREFNAME,
  MACRO_OBJECT,
  MACRO_METHOD 
)
Value:
{ \
    nsresult macro_rv; \
    nsCOMPtr <nsIFileSpec>macro_spec;     \
    macro_rv = m_prefs->GetComplexValue(PREFNAME, NS_GET_IID(nsIFileSpec), getter_AddRefs(macro_spec)); \
    if (NS_SUCCEEDED(macro_rv)) { \
       char *macro_oldStr = nsnull; \
       macro_rv = macro_spec->GetUnixStyleFilePath(&macro_oldStr);    \
    if (NS_SUCCEEDED(macro_rv) && macro_oldStr && (PL_strlen(macro_oldStr))) { \
              MACRO_OBJECT->MACRO_METHOD(PR_TRUE); \
       }      \
       else { \
              MACRO_OBJECT->MACRO_METHOD(PR_FALSE); \
       }      \
       PR_FREEIF(macro_oldStr); \
    } \
  }

Definition at line 234 of file nsMessengerMigrator.cpp.

#define MIGRATE_SIMPLE_FILE_PREF_TO_CHAR_PREF (   PREFNAME,
  MACRO_OBJECT,
  MACRO_METHOD 
)
Value:
{ \
    nsresult macro_rv; \
    nsCOMPtr <nsIFileSpec>macro_spec;     \
       char *macro_val = nsnull; \
       macro_rv = m_prefs->GetCharPref(PREFNAME, &macro_val); \
       if (NS_SUCCEEDED(macro_rv) && macro_val && PL_strlen(macro_val)) { \
              macro_rv = m_prefs->GetComplexValue(PREFNAME, NS_GET_IID(nsIFileSpec), getter_AddRefs(macro_spec)); \
              if (NS_SUCCEEDED(macro_rv)) { \
                     char *macro_oldStr = nsnull; \
                     macro_rv = macro_spec->GetUnixStyleFilePath(&macro_oldStr);    \
              if (NS_SUCCEEDED(macro_rv)) { \
                            MACRO_OBJECT->MACRO_METHOD(macro_oldStr); \
            } \
            PR_FREEIF(macro_oldStr); \
       } \
       } \
       else { \
              MACRO_OBJECT->MACRO_METHOD(""); \
       }      \
    PR_FREEIF(macro_val); \
  }

Definition at line 253 of file nsMessengerMigrator.cpp.

#define MIGRATE_SIMPLE_FILE_PREF_TO_FILE_PREF (   PREFNAME,
  MACRO_OBJECT,
  MACRO_METHOD 
)
Value:
{ \
    nsresult macro_rv; \
    nsCOMPtr <nsILocalFile> macro_file; \
    char *macro_oldStr = nsnull; \
    macro_rv = m_prefs->GetCharPref(PREFNAME, &macro_oldStr); \
    if (NS_SUCCEEDED(macro_rv) && macro_oldStr && PL_strlen(macro_oldStr)) { \
      macro_rv = m_prefs->GetComplexValue(PREFNAME, NS_GET_IID(nsILocalFile), getter_AddRefs(macro_file)); \
      if (NS_SUCCEEDED(macro_rv)) { \
        MACRO_OBJECT->MACRO_METHOD(macro_file); \
      } \
    } \
    PR_FREEIF(macro_oldStr); \
  }

Definition at line 276 of file nsMessengerMigrator.cpp.

#define MIGRATE_SIMPLE_INT_PREF (   PREFNAME,
  MACRO_OBJECT,
  MACRO_METHOD 
)
Value:
{ \
    nsresult macro_rv; \
    PRInt32 oldInt; \
    macro_rv = m_prefs->GetIntPref(PREFNAME, &oldInt); \
    if (NS_SUCCEEDED(macro_rv)) { \
      MACRO_OBJECT->MACRO_METHOD(oldInt); \
    } \
  }

Definition at line 315 of file nsMessengerMigrator.cpp.

#define MIGRATE_SIMPLE_STR_PREF (   PREFNAME,
  MACRO_OBJECT,
  MACRO_METHOD 
)
Value:
{ \
    nsresult macro_rv; \
    char *macro_oldStr = nsnull; \
    macro_rv = m_prefs->GetCharPref(PREFNAME, &macro_oldStr); \
    if (NS_SUCCEEDED(macro_rv)) { \
      MACRO_OBJECT->MACRO_METHOD(macro_oldStr); \
    } \
    PR_FREEIF(macro_oldStr); \
  }

Definition at line 291 of file nsMessengerMigrator.cpp.

#define MIGRATE_SIMPLE_WSTR_PREF (   PREFNAME,
  MACRO_OBJECT,
  MACRO_METHOD 
)
Value:
{ \
    nsresult macro_rv; \
    PRUnichar *macro_oldStr = nsnull; \
    nsCOMPtr<nsISupportsString> macro_tmpstr; \
    macro_rv = m_prefs->GetComplexValue(PREFNAME, NS_GET_IID(nsISupportsString), getter_AddRefs(macro_tmpstr)); \
    if (NS_SUCCEEDED(macro_rv)) { \
      macro_tmpstr->ToString(&macro_oldStr); \
      MACRO_OBJECT->MACRO_METHOD(macro_oldStr); \
    } \
    PR_FREEIF(macro_oldStr); \
  }

Definition at line 302 of file nsMessengerMigrator.cpp.

#define MIGRATE_STR_PREF (   PREFFORMATSTR,
  PREFFORMATVALUE,
  INCOMINGSERVERPTR,
  INCOMINGSERVERMETHOD 
)
Value:
{ \
    nsresult macro_rv; \
    char prefName[BUF_STR_LEN]; \
    char *macro_oldStr = nsnull; \
    PR_snprintf(prefName, BUF_STR_LEN, PREFFORMATSTR, PREFFORMATVALUE); \
    macro_rv = m_prefs->GetCharPref(prefName, &macro_oldStr); \
    if (NS_SUCCEEDED(macro_rv)) { \
      INCOMINGSERVERPTR->INCOMINGSERVERMETHOD(macro_oldStr); \
    } \
    PR_FREEIF(macro_oldStr); \
  }

Definition at line 335 of file nsMessengerMigrator.cpp.

#define NEWSRC_MAP_FILE_COOKIE   "netscape-newsrc-map-file"

Definition at line 2131 of file nsMessengerMigrator.cpp.

Definition at line 105 of file nsMessengerMigrator.cpp.

#define PREF_4X_AUTOCOMPLETE_ON_LOCAL_AB   "ldap_2.autoComplete.useAddressBooks"

Definition at line 176 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_ATTACH_VCARD   "mail.attach_vcard"

Definition at line 173 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_CC_SELF   "mail.cc_self"

Definition at line 166 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_CHECK_NEW_MAIL   "mail.check_new_mail"

Definition at line 144 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_CHECK_TIME   "mail.check_time"

Definition at line 146 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_COMPOSE_HTML   "mail.html_compose"

Definition at line 139 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_DEFAULT_CC   "mail.default_cc"

Definition at line 158 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_DEFAULT_DRAFTS   "mail.default_drafts"

Definition at line 164 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_DEFAULT_FCC   "mail.default_fcc"

Definition at line 160 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_DEFAULT_TEMPLATES   "mail.default_templates"

Definition at line 165 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_DELETE_MAIL_LEFT_ON_SERVER   "mail.delete_mail_left_on_server"

Definition at line 148 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_IDENTITY_ORGANIZATION   "mail.identity.organization"

Definition at line 136 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_IDENTITY_REPLY_TO   "mail.identity.reply_to"

Definition at line 135 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_IDENTITY_USEREMAIL   "mail.identity.useremail"

Definition at line 133 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_IDENTITY_USERNAME   "mail.identity.username"

Definition at line 134 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_IDENTITY_VCARD_ROOT   "mail.identity.vcard"

Definition at line 174 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_IMAP_SENTMAIL_PATH   "mail.imap_sentmail_path"

Definition at line 156 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_LEAVE_ON_SERVER   "mail.leave_on_server"

Definition at line 147 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_POP3_GETS_NEW_MAIL   "mail.pop3_gets_new_mail"

Definition at line 145 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_POP_NAME   "mail.pop_name"

Definition at line 140 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_POP_PASSWORD   "mail.pop_password"

Definition at line 142 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_REMEMBER_PASSWORD   "mail.remember_password"

Definition at line 141 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_SERVER_TYPE   "mail.server_type"

Definition at line 152 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_SIGNATURE_DATE   "mail.signature_date"

Definition at line 138 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_SIGNATURE_FILE   "mail.signature_file"

Definition at line 137 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_SMTP_NAME   "mail.smtp_name"

Definition at line 150 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_SMTP_SSL   "mail.smtp.ssl"

Definition at line 151 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_USE_DEFAULT_CC   "mail.use_default_cc"

Definition at line 162 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_USE_FCC   "mail.use_fcc"

Definition at line 168 of file nsMessengerMigrator.cpp.

#define PREF_4X_MAIL_USE_IMAP_SENTMAIL   "mail.use_imap_sentmail"

Definition at line 154 of file nsMessengerMigrator.cpp.

#define PREF_4X_NETWORK_HOSTS_IMAP_SERVER   "network.hosts.imap_servers"

Definition at line 153 of file nsMessengerMigrator.cpp.

#define PREF_4X_NETWORK_HOSTS_POP_SERVER   "network.hosts.pop_server"

Definition at line 143 of file nsMessengerMigrator.cpp.

#define PREF_4X_NETWORK_HOSTS_SMTP_SERVER   "network.hosts.smtp_server"

Definition at line 149 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_CC_SELF   "news.cc_self"

Definition at line 167 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_DEFAULT_CC   "news.default_cc"

Definition at line 159 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_DEFAULT_FCC   "news.default_fcc"

Definition at line 161 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_IMAP_SENTMAIL_PATH   "news.imap_sentmail_path"

Definition at line 157 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_MARK_OLD_READ   "news.mark_old_read"

Definition at line 172 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_MAX_ARTICLES   "news.max_articles"

Definition at line 170 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_NOTIFY_ON   "news.notify.on"

Definition at line 171 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_USE_DEFAULT_CC   "news.use_default_cc"

Definition at line 163 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_USE_FCC   "news.use_fcc"

Definition at line 169 of file nsMessengerMigrator.cpp.

#define PREF_4X_NEWS_USE_IMAP_SENTMAIL   "news.use_imap_sentmail"

Definition at line 155 of file nsMessengerMigrator.cpp.

#define PREF_IMAP_DIRECTORY   "mail.imap.root_dir"

Definition at line 116 of file nsMessengerMigrator.cpp.

#define PREF_MAIL_DEFAULT_SENDLATER_URI   "mail.default_sendlater_uri"

Definition at line 117 of file nsMessengerMigrator.cpp.

#define PREF_MAIL_DIRECTORY   "mail.directory"

Definition at line 113 of file nsMessengerMigrator.cpp.

#define PREF_MIGRATION_MODE_FOR_MAIL   "mail.migration.copyMailFiles"

Definition at line 203 of file nsMessengerMigrator.cpp.

#define PREF_MOZILLA_AUTOCOMPLETE_ON_LOCAL_AB   "mail.enable_autocomplete"

Definition at line 177 of file nsMessengerMigrator.cpp.

#define PREF_NEWS_DIRECTORY   "news.directory"

Definition at line 112 of file nsMessengerMigrator.cpp.

#define PREF_PREMIGRATION_MAIL_DIRECTORY   "premigration.mail.directory"

Definition at line 114 of file nsMessengerMigrator.cpp.

#define PREF_PREMIGRATION_NEWS_DIRECTORY   "premigration.news.directory"

Definition at line 115 of file nsMessengerMigrator.cpp.

Definition at line 1915 of file nsMessengerMigrator.cpp.

#define UNSENT_MESSAGES_FOLDER_NAME   "Unsent%20Messages"

Definition at line 128 of file nsMessengerMigrator.cpp.


Function Documentation

static PRBool charEndsWith ( const char *  str,
const char *  endStr 
) [static]

Definition at line 1894 of file nsMessengerMigrator.cpp.

{
    PRUint32 endStrLen = PL_strlen(endStr);
    PRUint32 strLen = PL_strlen(str);
   
    if (strLen < endStrLen) return PR_FALSE;

    PRUint32 pos = strLen - endStrLen;
    if (PL_strncmp(str + pos, endStr, endStrLen) == 0) {
        return PR_TRUE;
    }
    else {
        return PR_FALSE;
    }
}

Here is the call graph for this function:

Here is the caller graph for this function: