withArgs = "chrome:
withArgs = "about:blank";
static nsresult HandleMailStartup( nsICmdLineService* cmdLineArgs, nsIPref *prefs,  PRBool heedGeneralStartupPrefs){	char* cmdResult = nsnull;	char *  urlstr=nsnull;	nsString withArgs;	nsresult rv;	PRBool forceLaunchMail = PR_FALSE;	PRBool forceLaunchNews = PR_FALSE;		PRInt32 height  = NS_SIZETOCONTENT;	PRInt32 width  = NS_SIZETOCONTENT;	// Get the value of -width option	char* tempString = NULL;	rv = cmdLineArgs->GetCmdLineValue("-width", &tempString);	if (NS_FAILED(rv))    return rv;		if (tempString)    PR_sscanf(tempString, "%d", &width);	  	// Get the value of -height option	rv = cmdLineArgs->GetCmdLineValue("-height", &tempString);	if (NS_FAILED(rv))		return rv;	  	if (tempString)		PR_sscanf(tempString, "%d", &height);	  	  if (heedGeneralStartupPrefs) {                prefs->GetBoolPref(PREF_GENERAL_STARTUP_MAIL,&forceLaunchMail);  }      rv = cmdLineArgs->GetCmdLineValue("-mail", &cmdResult);  if (NS_SUCCEEDED(rv))  {    if (forceLaunchMail || (cmdResult && (PL_strcmp("1",cmdResult)==0)))    {      OpenChromURL("chrome://messenger/content/", height, width);              }  }  if (heedGeneralStartupPrefs) {                prefs->GetBoolPref(PREF_GENERAL_STARTUP_NEWS,&forceLaunchNews);  }      rv = cmdLineArgs->GetCmdLineValue("-news", &cmdResult);  if (NS_SUCCEEDED(rv))  {    if (forceLaunchNews || (cmdResult && (PL_strcmp("1",cmdResult)==0)))      OpenChromURL("chrome://messenger/content/", height, width);  }	  rv = cmdLineArgs->GetCmdLineValue("-compose", &cmdResult);  if (NS_SUCCEEDED(rv))  {    if (cmdResult && (PL_strcmp("1",cmdResult)==0))    {      urlstr = "chrome://messengercompose/content/";      withArgs = "chrome://editor/content/EditorInitPage.html";  	        OpenWindow( urlstr, withArgs.GetUnicode() );    }  }	  rv = cmdLineArgs->GetCmdLineValue("-addressbook", &cmdResult);  if (NS_SUCCEEDED(rv))  {    if (cmdResult && (PL_strcmp("1",cmdResult)==0))      OpenChromURL("chrome://addressbook/content/",height, width);  }		return NS_OK;    }