зеркало из https://github.com/mozilla/pjs.git
GetPersistentDescriptorString() doesn't seem to be working on the mac when the nsIFileSpec is a directory. (I'll log a bug when I confirm this. GetNativePath() is working, so you that. This gets mail-news migration working on the Mac.
This commit is contained in:
Родитель
13038cc231
Коммит
e0cda2a38f
|
@ -1117,7 +1117,7 @@ nsMsgAccountManager::MigratePopAccounts(nsIMsgIdentity *identity)
|
|||
}
|
||||
|
||||
char *str = nsnull;
|
||||
mailDir->GetPersistentDescriptorString(&str);
|
||||
mailDir->GetNativePath(&str);
|
||||
|
||||
if (str && *str) {
|
||||
server->SetLocalPath(str);
|
||||
|
@ -1321,7 +1321,7 @@ nsMsgAccountManager::MigrateImapAccount(nsIMsgIdentity *identity, const char *ho
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
char *str = nsnull;
|
||||
imapMailDir->GetPersistentDescriptorString(&str);
|
||||
imapMailDir->GetNativePath(&str);
|
||||
|
||||
if (str && *str) {
|
||||
server->SetLocalPath(str);
|
||||
|
@ -1658,7 +1658,7 @@ nsMsgAccountManager::MigrateNewsAccount(nsIMsgIdentity *identity, const char *ho
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
char *str = nsnull;
|
||||
newsDir->GetPersistentDescriptorString(&str);
|
||||
newsDir->GetNativePath(&str);
|
||||
|
||||
if (str && *str) {
|
||||
server->SetLocalPath(str);
|
||||
|
|
Загрузка…
Ссылка в новой задаче