From 05a6e05ec2912df6835a3746b97db7e8bfff572d Mon Sep 17 00:00:00 2001 From: "mscott%netscape.com" Date: Thu, 1 Apr 1999 01:15:07 +0000 Subject: [PATCH] DisplayMessage now takes the URI instead of the path, msg key pair. So I'm cleaning up the code that used to decompose the URI... --- mailnews/base/src/nsMsgAppCore.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/mailnews/base/src/nsMsgAppCore.cpp b/mailnews/base/src/nsMsgAppCore.cpp index 13baba0dc084..dfcadb991235 100644 --- a/mailnews/base/src/nsMsgAppCore.cpp +++ b/mailnews/base/src/nsMsgAppCore.cpp @@ -523,20 +523,16 @@ nsMsgAppCore::OpenURL(const char * url) } else { - nsString folderURI; - nsParseLocalMessageURI(url, folderURI, &msgIndex); - nsURI2Path(kMessageRootURI, nsAutoCString(folderURI), folderPath); displayNumber = PR_FALSE; } nsIMailboxService * mailboxService = nsnull; nsresult rv = nsServiceManager::GetService(kCMailboxServiceCID, nsIMailboxService::GetIID(), (nsISupports **) &mailboxService); if (NS_SUCCEEDED(rv) && mailboxService) { - nsIURL * url = nsnull; if(displayNumber) mailboxService->DisplayMessageNumber(folderPath, msgIndex, mWebShell, nsnull, nsnull); else - mailboxService->DisplayMessage(folderPath, msgIndex, nsnull, mWebShell, nsnull, nsnull); + mailboxService->DisplayMessage(url, mWebShell, nsnull, nsnull); nsServiceManager::ReleaseService(kCMailboxServiceCID, mailboxService); }