зеркало из https://github.com/mozilla/gecko-dev.git
check the return values when calling SetDefaultLocalPath(). mail.root.pop wasn't getting set when migrating a profile that used pop. it was caused by a simple cut and paste error.
This commit is contained in:
Родитель
c99df5aac4
Коммит
d5445de86d
|
@ -1551,7 +1551,7 @@ nsMsgAccountManager::MigrateLocalMailAccount(nsIMsgIdentity *identity)
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// set the default local path for "none"
|
||||
server->SetDefaultLocalPath(mailDir);
|
||||
rv = server->SetDefaultLocalPath(mailDir);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = mailDir->Exists(&dirExists);
|
||||
|
@ -1670,7 +1670,7 @@ nsMsgAccountManager::MigratePopAccount(nsIMsgIdentity *identity)
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// set the default local path for "pop3"
|
||||
server->SetDefaultLocalPath(mailDir);
|
||||
rv = server->SetDefaultLocalPath(mailDir);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
rv = mailDir->Exists(&dirExists);
|
||||
|
@ -1853,7 +1853,7 @@ nsMsgAccountManager::MigrateImapAccount(nsIMsgIdentity *identity, const char *ho
|
|||
// we only need to do this once
|
||||
if (!m_alreadySetImapDefaultLocalPath) {
|
||||
// set the default local path for "imap"
|
||||
server->SetDefaultLocalPath(imapMailDir);
|
||||
rv = server->SetDefaultLocalPath(imapMailDir);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
m_alreadySetImapDefaultLocalPath = PR_TRUE;
|
||||
|
@ -2153,7 +2153,7 @@ nsMsgAccountManager::MigrateNewsAccount(nsIMsgIdentity *identity, const char *ho
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// set the default local path for "nntp"
|
||||
server->SetDefaultLocalPath(nntpRootDir);
|
||||
rv = server->SetDefaultLocalPath(nntpRootDir);
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
// set the newsrc root for "nntp"
|
||||
|
|
|
@ -315,8 +315,8 @@ NSRegisterSelf(nsISupports* aServMgr, const char* path)
|
|||
if (NS_FAILED(rv)) finalResult = rv;
|
||||
|
||||
rv = compMgr->RegisterComponent(kPop3ServiceCID,
|
||||
"POP3 Protocol Information",
|
||||
NS_NONEPROTOCOLINFO_PROGID,
|
||||
"pop3 Protocol Information",
|
||||
NS_POP3PROTOCOLINFO_PROGID,
|
||||
path, PR_TRUE, PR_TRUE);
|
||||
|
||||
if (NS_FAILED(rv)) finalResult = rv;
|
||||
|
|
Загрузка…
Ссылка в новой задаче