*baseMessageURI = baseURIStr.ToNewCString();
*baseMessageURI = ToNewCString(baseURIStr);
nsresult nsCreateImapBaseMessageURI(const char *baseURI, char **baseMessageURI){	if(!baseMessageURI)		return NS_ERROR_NULL_POINTER;	nsCAutoString tailURI(baseURI);	// chop off mailbox:/	if (tailURI.Find(kImapRootURI) == 0)		tailURI.Cut(0, PL_strlen(kImapRootURI));		nsCAutoString baseURIStr(kImapMessageRootURI);	baseURIStr += tailURI;	*baseMessageURI = baseURIStr.ToNewCString();	if(!*baseMessageURI)		return NS_ERROR_OUT_OF_MEMORY;	return NS_OK;}