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:
sspitzer%netscape.com 1999-07-22 00:53:26 +00:00
Родитель 13038cc231
Коммит e0cda2a38f
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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);