From e0cda2a38f195e17a92ea946f205f3b0a1e2ee0c Mon Sep 17 00:00:00 2001 From: "sspitzer%netscape.com" Date: Thu, 22 Jul 1999 00:53:26 +0000 Subject: [PATCH] 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. --- mailnews/base/src/nsMsgAccountManager.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mailnews/base/src/nsMsgAccountManager.cpp b/mailnews/base/src/nsMsgAccountManager.cpp index 95f7a1f796a..99a3e3e10e9 100644 --- a/mailnews/base/src/nsMsgAccountManager.cpp +++ b/mailnews/base/src/nsMsgAccountManager.cpp @@ -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);