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...

This commit is contained in:
mscott%netscape.com 1999-04-01 01:15:07 +00:00
Родитель 7d526b8ad9
Коммит 05a6e05ec2
1 изменённых файлов: 1 добавлений и 5 удалений

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

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