pIName = name.ToNewCString();
pIName = ToNewCString(name);
PRBool OESettings::IdentityMatches( nsIMsgIdentity *pIdent, const char *pName, const char *pServer, const char *pEmail, const char *pReply, const char *pUserName){	if (!pIdent)		return( PR_FALSE);	char *	pIName = nsnull;	char *	pIEmail = nsnull;	char *	pIReply = nsnull;		PRBool	result = PR_TRUE;	// The test here is:	// If the smtp host is the same	//	and the email address is the same (if it is supplied)	//	and the reply to address is the same (if it is supplied)	//	then we match regardless of the full name.	PRUnichar *	ppIName = nsnull;	nsresult rv = pIdent->GetFullName( &ppIName);	rv = pIdent->GetEmail( &pIEmail);	rv = pIdent->GetReplyTo( &pIReply);	if (ppIName) {		nsString name(ppIName);		nsCRT::free( ppIName);		pIName = name.ToNewCString();	}	// for now, if it's the same server and reply to and email then it matches	if (pReply) {		if (!pIReply || nsCRT::strcasecmp( pReply, pIReply))			result = PR_FALSE;	}	if (pEmail) {		if (!pIEmail || nsCRT::strcasecmp( pEmail, pIEmail))			result = PR_FALSE;	}	nsCRT::free( pIName);	nsCRT::free( pIEmail);	nsCRT::free( pIReply);	return( result);}