server->GetUserName(&value);
server->GetUsername(&value);
nsresult nsIMAP4TestDriver::OnIdentityCheck(){	nsresult result = NS_OK;	NS_WITH_SERVICE(nsIMsgMailSession, mailSession, kCMsgMailSessionCID, &result); 	if (NS_SUCCEEDED(result) && mailSession)	{		nsIMsgIncomingServer * server = nsnull;		result = mailSession->GetCurrentServer(&server);		if (NS_SUCCEEDED(result) && server)		{			char * value = nsnull;			server->GetHostName(&value);			printf("Imap Server: %s\n", value ? value : "");			server->GetUserName(&value);			printf("User Name: %s\n", value ? value : "");			server->GetPassword(&value);			printf("Imap Password: %s\n", value ? value : "");		}		else			printf("Unable to retrieve the msgIdentity....\n");	}	else		printf("Unable to retrieve the mail session service....\n");	return result;}