Forward inline URI, changed to use GetUrlForUri instead of CreateStartupUrl,

contributed by adu@sparc.spb.su,
bug 66098, r=nhotta, sr=sspitzer, a=asa.


git-svn-id: svn://10.0.0.236/trunk@116081 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
nhotta%netscape.com
2002-03-07 21:13:58 +00:00
parent cdfcf7cfc1
commit 6e9c38599c

View File

@@ -157,7 +157,9 @@ nsMsgDraft::ProcessDraftOrTemplateOperation(const char *msgURI, nsMimeOutputType
}
nsCOMPtr<nsIURI> aURL;
rv = CreateStartupUrl(mURI, getter_AddRefs(aURL));
rv = mMessageService->GetUrlForUri(mURI, getter_AddRefs(aURL), aMsgWindow);
if (aURL)
aURL->SetSpec(nsDependentCString(mURI));
// if we are forwarding a message and that message used a charset over ride
// then use that over ride charset instead of the charset specified in the message