delete[] tail;
nsAllocator::Free(tail);
nsresult nsBuildImapMessageURI(const char *baseURI, PRUint32 key, char** uri){		if(!uri)		return NS_ERROR_NULL_POINTER;	nsAutoString tailURI(baseURI);	if (tailURI.Find(kImapRootURI) == 0)		tailURI.Cut(0, PL_strlen(kImapRootURI));	char *tail = tailURI.ToNewCString();	*uri = PR_smprintf("%s%s#%d", kImapMessageRootURI, tail, key);	delete[] tail;	return NS_OK;}