From 6e9c38599cd6b72842e2a1fd1dfd2fe46d99a809 Mon Sep 17 00:00:00 2001 From: "nhotta%netscape.com" Date: Thu, 7 Mar 2002 21:13:58 +0000 Subject: [PATCH] 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 --- mozilla/mailnews/compose/src/nsMsgCreate.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/mailnews/compose/src/nsMsgCreate.cpp b/mozilla/mailnews/compose/src/nsMsgCreate.cpp index 1a756fa5bea..4aca631c002 100644 --- a/mozilla/mailnews/compose/src/nsMsgCreate.cpp +++ b/mozilla/mailnews/compose/src/nsMsgCreate.cpp @@ -157,7 +157,9 @@ nsMsgDraft::ProcessDraftOrTemplateOperation(const char *msgURI, nsMimeOutputType } nsCOMPtr 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