nsCOMPtr<nsIURI>	url;
IMAPGetStringByID(PRInt32 stringID){	nsresult    res;	char*       propertyURL = NULL;	nsString	resultString = "???";	propertyURL = IMAP_MSGS_URL;	NS_WITH_SERVICE(nsIStringBundleService, sBundleService, kStringBundleServiceCID, &res); 	if (NS_SUCCEEDED(res) && (nsnull != sBundleService)) 	{		nsCOMPtr<nsIURI>	url;		nsILocale   *locale = nsnull;		nsIStringBundle* sBundle = nsnull;		res = sBundleService->CreateBundle(propertyURL, locale, &sBundle);		if (NS_SUCCEEDED(res))		{			PRUnichar *ptrv = nsnull;			res = sBundle->GetStringFromID(stringID, &ptrv);			NS_RELEASE(sBundle);			if (NS_FAILED(res)) 			{				resultString = "[StringID";				resultString.Append(stringID, 10);				resultString += "?]";				return resultString.ToNewUnicode();			}			return ptrv;		}	}	return resultString.ToNewUnicode();}