fix for #14604. pop migration was broken on mac.
my code to migrate 4.x imap mail filters on the mac should only be run when we used pop in 4.x git-svn-id: svn://10.0.0.236/trunk@48864 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -1112,19 +1112,20 @@ nsPrefMigration::DoSpecialUpdates(nsFileSpec profilePath)
|
||||
// rename the bookmarks file, but only if we need to.
|
||||
rv = Rename4xFileAfterMigration(profilePath,BOOKMARKS_FILE_NAME_IN_4x,BOOKMARKS_FILE_NAME_IN_5x);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
#ifdef IMAP_MAIL_FILTER_FILE_NAME_FORMAT_IN_4x
|
||||
rv = RenameAndMove4xImapFilterFiles(profilePath);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
#endif /* IMAP_MAIL_FILTER_FILE_NAME_FORMAT_IN_4x */
|
||||
|
||||
/* Create the new mail directory from the setting in prefs.js or a default */
|
||||
/* Create the new mail directory from the setting in prefs.js or a default */
|
||||
rv = m_prefs->GetIntPref(PREF_MAIL_SERVER_TYPE, &serverType);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
if (serverType == POP_4X_MAIL_TYPE) {
|
||||
rv = RenameAndMove4xPopFilterFile(profilePath);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
#ifdef IMAP_MAIL_FILTER_FILE_NAME_FORMAT_IN_4x
|
||||
else if (serverType == IMAP_4X_MAIL_TYPE) {
|
||||
rv = RenameAndMove4xImapFilterFiles(profilePath);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
#endif /* IMAP_MAIL_FILTER_FILE_NAME_FORMAT_IN_4x */
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user