167538 r=bienvenu sr=sspitzer a=asa fixing save as template regression

git-svn-id: svn://10.0.0.236/trunk@129140 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
naving%netscape.com
2002-09-10 03:02:41 +00:00
parent b0a1b241ec
commit dc8d3ebeb6

View File

@@ -1620,8 +1620,9 @@ nsSaveMsgListener::OnStopRunningUrl(nsIURI* url, nsresult exitCode)
nsCOMPtr<nsIMsgFolder> templateFolder;
templateFolder = do_QueryInterface(res, &rv);
if (NS_FAILED(rv)) goto done;
rv = templateFolder->CopyFileMessage(m_fileSpec, nsnull,
PR_TRUE, nsnull, this);
nsCOMPtr<nsIMsgCopyService> copyService = do_GetService(NS_MSGCOPYSERVICE_CONTRACTID);
if (copyService)
rv = copyService->CopyFileMessage(m_fileSpec, templateFolder, nsnull, PR_TRUE, this, nsnull);
killSelf = PR_FALSE;
}
}